My nginx conf:<br><br> gzip  on;<br> 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<br> gzip_vary on;<br> gzip_comp_level 1;<br>
 gzip_proxied any;<br> gzip_types text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript ;<br><br>TEST:<br><br>curl  -I  --header &#39;accept-encoding:gzip&#39;  <a href="http://zagreb-test.12ip.net/stylesheets/base_packaged.css">zagreb-test.12ip.net/stylesheets/base_packaged.css</a><br>
<br>HTTP/1.1 200 OK<br>Server: nginx/0.7.67<br>Date: Thu, 23 Dec 2010 10:03:06 GMT<br>Content-Type: text/css<br>Connection: keep-alive<br>Vary: Accept-Encoding<br>Last-Modified: Thu, 23 Dec 2010 06:13:24 GMT<br>Expires: Thu, 31 Dec 2037 23:55:55 GMT<br>
Cache-Control: max-age=315360000<br><b>Content-Encoding: gzip</b><br><br>GIDZIPTest : OK<br><br>From my company intranet:<br><br>curl  -I  --header &#39;accept-encoding:gzip&#39;  <a href="http://zagreb-test.12ip.net/stylesheets/base_packaged.css">zagreb-test.12ip.net/stylesheets/base_packaged.css</a><br>
HTTP/1.1 200 OK<br>Via: 1.1 ADSL<br>Connection: Keep-Alive<br>Proxy-Connection: Keep-Alive<br>Content-Length: 42441<br>Expires: Thu, 31 Dec 2037 23:55:55 GMT<br>Date: Thu, 23 Dec 2010 10:07:38 GMT<br>Content-Type: text/css<br>
Server: nginx/0.7.67<br>Vary: Accept-Encoding<br>Last-Modified: Thu, 23 Dec 2010 06:13:24 GMT<br>Cache-Control: max-age=315360000<br><br>There is no Content-Encoing header and .css is not gziped.<br><br>To make thing more interesting if I try to fetch googe cdn ui-css(it is compressed but I don&#39;t he the gzip in the response)<br>
<br>(from intranet)<br><br>curl  -I  --header &#39;accept-encoding:gzip&#39;  <a href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.0/themes/smoothness/jquery-ui.css">http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.0/themes/smoothness/jquery-ui.css</a><br>
HTTP/1.1 200 OK<br>Via: 1.1 ADSL<br>Connection: Keep-Alive<br>Proxy-Connection: Keep-Alive<br>Content-Length: 27630<br>Expires: Thu, 23 Dec 2010 10:10:00 GMT<br>Date: Thu, 23 Dec 2010 10:10:00 GMT<br>Content-Type: text/css; charset=UTF-8<br>
Server: sffe<br>Last-Modified: Tue, 09 Feb 2010 23:05:02 GMT<br>Cache-Control: private, max-age=31536000<br>Vary: Accept-Encoding<br>X-Content-Type-Options: nosniff<br>X-XSS-Protection: 1; mode=block<br><br><br>Any help/pointers would be much appreciated.<br>
<br><br><br>Kresimir Bojcic<br><br><br>