My Oracle Support Banner

Webcache Returns Content-Type and Content-Length in 304 Header Response (Doc ID 1134614.1)

Last updated on SEPTEMBER 24, 2018

Applies to:

Web Cache - Version 10.1.2.0.2 to 11.1.1.7.0 [Release AS10gR2 to Oracle11g]
Information in this document applies to any platform.

Symptoms

> GET /home/images/thumb09.jpg HTTP/1.1
> User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> Accept: */*
> Host:host.domain
> if-Modified-Since: Wed, 10 Mar 2010 08:20:06 GMT
>
< HTTP/1.1 304 Not Modified
< Date: Wed, 10 Mar 2010 10:00:20 GMT
< Server: OracleAS-Web-Cache-10g/10.1.2.2.0
< Content-Type: text/html
< Content-Length: 0
"10.3.5 304 Not Modified

If the client has performed a conditional GET request and access is allowed, but the document has not been modified, the server SHOULD respond with this status code. The 304 response MUST NOT contain a message-body, and thus is always terminated by the first empty line after the header fields.

The response MUST include the following header fields:

- Date, unless its omission is required by section 14.18.1

If a clockless origin server obeys these rules, and proxies and clients add their own Date to any response received without one (as already specified by [RFC 2068], section 14.19), caches will operate correctly.

- ETag and/or Content-Location, if the header would have been sent
in a 200 response to the same request

- Expires, Cache-Control, and/or Vary, if the field-value might
differ from that sent in any previous response for the same
variant

If the conditional GET used a strong cache validator (see section 13.3.3), the response SHOULD NOT include other entity-headers. Otherwise (i.e., the conditional GET used a weak validator), the response MUST NOT include other entity-headers; this prevents inconsistencies between cached entity-bodies and updated headers.”

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.
My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.