iis7.5 Solutions that are not always available in gzip

  • 2020-06-15 10:29:53
  • OfStack

When gzip is enabled in IIS7, the working mechanism is that gzip is not enabled if the number of visits does not exceed a specified number of times in a specified period of time. How do you solve this problem?

Run the following two commands.

%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/serverRuntime /frequentHitThreshold:1
%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/serverRuntime /frequentHitTimePeriod:01:00:00 /commit:apphost

To paraphrase, the above two commands mean that if there is one access per hour, gzip is enabled


Related articles: