Problem with compressing content
Kresimir Bojcic
kresimir.bojcic at gmail.com
Thu Dec 23 13:17:21 MSK 2010
My nginx conf:
gzip on;
gzip_http_version 1.0; #if I leave this line out, i am not passing
GIDZipTest, but firefox is getting gzip if connected outside my company LAN
gzip_vary on;
gzip_comp_level 1;
gzip_proxied any;
gzip_types text/html text/css application/x-javascript text/xml
application/xml application/xml+rss text/javascript application/javascript ;
TEST:
curl -I --header 'accept-encoding:gzip'
zagreb-test.12ip.net/stylesheets/base_packaged.css
HTTP/1.1 200 OK
Server: nginx/0.7.67
Date: Thu, 23 Dec 2010 10:03:06 GMT
Content-Type: text/css
Connection: keep-alive
Vary: Accept-Encoding
Last-Modified: Thu, 23 Dec 2010 06:13:24 GMT
Expires: Thu, 31 Dec 2037 23:55:55 GMT
Cache-Control: max-age=315360000
*Content-Encoding: gzip*
GIDZIPTest : OK
>From my company intranet:
curl -I --header 'accept-encoding:gzip'
zagreb-test.12ip.net/stylesheets/base_packaged.css
HTTP/1.1 200 OK
Via: 1.1 ADSL
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
Content-Length: 42441
Expires: Thu, 31 Dec 2037 23:55:55 GMT
Date: Thu, 23 Dec 2010 10:07:38 GMT
Content-Type: text/css
Server: nginx/0.7.67
Vary: Accept-Encoding
Last-Modified: Thu, 23 Dec 2010 06:13:24 GMT
Cache-Control: max-age=315360000
There is no Content-Encoing header and .css is not gziped.
To make thing more interesting if I try to fetch googe cdn ui-css(it is
compressed but I don't he the gzip in the response)
(from intranet)
curl -I --header 'accept-encoding:gzip'
http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.0/themes/smoothness/jquery-ui.css
HTTP/1.1 200 OK
Via: 1.1 ADSL
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
Content-Length: 27630
Expires: Thu, 23 Dec 2010 10:10:00 GMT
Date: Thu, 23 Dec 2010 10:10:00 GMT
Content-Type: text/css; charset=UTF-8
Server: sffe
Last-Modified: Tue, 09 Feb 2010 23:05:02 GMT
Cache-Control: private, max-age=31536000
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Any help/pointers would be much appreciated.
Kresimir Bojcic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20101223/871dfe9a/attachment.html>
More information about the nginx
mailing list