ContentType - text/css for css files in 304 Not Modified

Maxim Dounin mdounin at mdounin.ru
Thu Sep 2 03:39:33 MSD 2010


Hello!

On Wed, Sep 01, 2010 at 01:23:38PM -0700, kevin wrote:

> i want nginx to include ContentType text/css for css files in  304 Not
> Modified request
> 
> here is the headers for the static css file request. you can see that there
> is no ContentType sent.

RFC 2616 says about 304 responses:
(http://tools.ietf.org/html/rfc2616#section-10.3.5)

   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.

Content-Type is entity header and not listed above this paragraph, 
so clearly qualifies as "other entity-headers".

Could you please clarify why you think RFC is wrong here and you 
need Content-Type in 304 response?

Maxim Dounin



More information about the nginx mailing list