In IIS7, gzipped files will not remain so

I configured IIS7 on gzip static content.

http://www.coderjournal.com/2008/04/iis-7-compress-javascript-gzip/

However, the files do not β€œremain” gzipped.

Here is my use case:

  • Request the test.css file. It is not gzipped.
  • Request it in a few seconds. it gzipped.
  • Wait 5 minutes.
  • Request the test.css file again. It is not gzipped.

This doesn't make sense - shouldn't a static gzipped version be supplied in all subsequent requests if the original hasn't changed?

Note. I use Firefox and Firebug to check gzipped content by checking the Content-Encoding header.

+7
iis iis-7 gzip content-encoding
Feb 04 '10 at
source share
3 answers

In accordance with this article:

Compression changes in IIS7 Kanwaljeet Singla

In IIS7, content is compressed depending on the hit rate, which is configured as follows:

<system.webServer> <serverRuntime enabled="true" frequentHitThreshold="5" frequentHitTimePeriod="00:00:20" /> </system.webServer> 

Perhaps you do not click these thresholds?

+9
Feb 05 '10 at 13:29
source share
β€” -

Depending on how much you need to optimize performance on your site, you can use Combres instead .

The big advantage is that it only minimizes and gzip your javascript files, but it also merges all the files into one, so there is only one HTTP request for all your javascript files. In addition, it also uses client-side caching, so the file is downloaded only when necessary. He also does all this for CSS files.

It's pretty easy to set up, so instead of trying to fix it, your time might be better spent getting Combres.

+1
Feb 04 2018-10-22T00
source share

I would advise you to pay attention to other software - Helicon Ape http://www.helicontech.com/ape It is free for 3 websites and includes compression / caching solutions that work smoothly. In only one line of configuration you will get gzip and cache enabled:

 SetEnvIfNoCase mime text/.* gzip=9 cache-enable=mem 

The rule above says that Ape compresses the text / * mime types at the highest level and also caches them in memory. Just try it.

-one
Mar 04
source share



All Articles