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:
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?