Static Compression IIS 7.X - Doesn't Hit Frequently

How to force IIS 7.X to perform static compression no matter how often a static file is accessed? If I refresh a page in Firefox with caching disabled, this is the only way of static compression due to some "Not Frequently Hit" condition, which refuses to perform static compression if the file is not often accessed .....

More details: http://forums.iis.net/t/1162238.aspx

+6
source share
1 answer

It took a while to figure this out. Setting the hourHitThreshold attribute to 1 on the system.webServer / serverRuntime node in the applicationHost.config file should do the trick, as described in http://www.iis.net/ConfigReference/system.webServer/serverRuntime .

You can do this by running the following command as an administrator:

%windir%\system32\inetsrv\appcmd set config /section:serverRuntime /frequentHitThreshold:1 /commit:apphost 

A word of warning - the concept of "frequent hit" is not like compression. I do not know if there are other consequences as a result of this!

+6
source

Source: https://habr.com/ru/post/890979/


All Articles