We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7b25f7 commit 3dcf2a8Copy full SHA for 3dcf2a8
iocore/cache/Cache.cc
@@ -453,7 +453,7 @@ CacheVC::set_http_info(CacheHTTPInfo *ainfo)
453
}
454
455
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()) {
+ if ((field && !field->value_get_int64()) || ainfo->m_alt->m_response_hdr.status_get() == HTTP_STATUS_NO_CONTENT) {
457
f.allow_empty_doc = 1;
458
// Set the object size here to zero in case this is a cache replace where the new object
459
// length is zero but the old object was not.
0 commit comments