Welcome! Log In Create A New Profile

Advanced

Problem with compressing content

Kresimir Bojcic
December 23, 2010 05:34AM
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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Problem with compressing content

Kresimir Bojcic December 23, 2010 05:34AM

Re: Problem with compressing content

Reinis Rozitis December 23, 2010 06:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 212
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