Skip to content

Commit 3dcf2a8

Browse files
authored
Make 204 cacheable again (#9333)
1 parent b7b25f7 commit 3dcf2a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iocore/cache/Cache.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ CacheVC::set_http_info(CacheHTTPInfo *ainfo)
453453
}
454454

455455
MIMEField *field = ainfo->m_alt->m_response_hdr.field_find(MIME_FIELD_CONTENT_LENGTH, MIME_LEN_CONTENT_LENGTH);
456-
if (field && !field->value_get_int64()) {
456+
if ((field && !field->value_get_int64()) || ainfo->m_alt->m_response_hdr.status_get() == HTTP_STATUS_NO_CONTENT) {
457457
f.allow_empty_doc = 1;
458458
// Set the object size here to zero in case this is a cache replace where the new object
459459
// length is zero but the old object was not.

0 commit comments

Comments
 (0)