Welcome! Log In Create A New Profile

Advanced

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

kevin
September 01, 2010 04:34PM
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;
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

kevin September 01, 2010 04:34PM

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

Maxim Dounin September 01, 2010 07:44PM

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

kevin September 01, 2010 09:06PM

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

Alex Sergeyev September 02, 2010 01:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 239
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready