ContentType - text/css for css files in 304 Not Modified
kevin
kevincastiglione at gmail.com
Thu Sep 2 00:23:38 MSD 2010
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.
GET /static/fan.css HTTP/1.1
Host: A.B.C.D
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
If-Modified-Since: Wed, 01 Sep 2010 20:07:45 GMT
Cache-Control: max-age=0
HTTP/1.1 304 Not Modified
Server: nginx/0.8.49
Date: Wed, 01 Sep 2010 20:15:51 GMT
Last-Modified: Wed, 01 Sep 2010 20:07:45 GMT
Connection: keep-alive
Expires: Thu, 31 Dec 2037 23:55:55 GMT
Cache-Control: max-age=315360000
I can also confirm that in nginx config i have included mime.types which has
the following:
text/html html htm shtml;
text/css css;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20100901/e7a4c6bb/attachment.html>
More information about the nginx
mailing list