New answers tagged gzip
Apparently, on the first request for a static file, IIS does not have a compressed copy of the file in it's compressed file cache, so it uses dynamic compression on that request. This can be resolved by setting the serverRuntime element's frequentHitTHreshold attribute to 1. This is discussed in detail here. This setting is probably only worth changing if ...
Your links are wrong. You've made links to file.css.gz, which just serves the gzipped file directly. Instead, you should link to file.css. The web browser will figure out that the gzipped file is there (nginx) and serve it, or will compress it itself.
As it turned out, the config wasn't really being run very well, and the site always chose deflate over gzip. As such I wasn't seeing it working. I simplified my http.conf, and enabled a log on linux which showed that it was infact working: LoadModule deflate_module /usr/lib/apache2/modules/mod_deflate.so SetOutputFilter DEFLATE SetEnvIfNoCase Request_URI ...
Look here for more details on IIS dynamic compression: http://www.west-wind.com/weblog/posts/2011/May/05/Builtin-GZipDeflate-Compression-on-IIS-7x Basically with high CPU load on the server, less compression is done Here more details and how to configure the compression levels: ...
The -d switch will let you specify the output directory. cd /tmp/foo zip /tmp/test.zip * cd /tmp unzip /tmp/test.zip -d bar
Top 50 recent answers are included