I have configured IIS7 to gzip static content.
http://www.coderjournal.com/2008/04/iis-7-compress-javascript-gzip/
However, the files don't "stay" gzipped.
Here's my use case:
This doesn't make sense -- shouldn't the gzipped version of a static file be delivered on all subsequent requests, if the original did not change?
Note: I am using Firefox and Firebug to verify gzipped content by checking the Content-Encoding header.
According to this article:
Changes to compression in IIS7 by Kanwaljeet Singla
In IIS7, content is compressed depending on it's hit frequency which is configurable like this:
<system.webServer>
<serverRuntime enabled="true"
frequentHitThreshold="5"
frequentHitTimePeriod="00:00:20" />
</system.webServer>
Maybe you're not hitting these thresholds?
Depending on how badly you need to optimize performance on your site, you might want to use Combres instead.
The big advantage is that it does only only minify and gzip your javascript files, but it also combines all files into one, so there is only one http request for all your javascript files. In addition, it also makes use of client-side caching, so that the file is only downloaded when necessary. Also, it does the all this for CSS files as well.
It's quite easy to set up, so instead of trying to fix this, your time might be better spent on getting Combres instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With