iis-docs
iis-docs copied to clipboard
Seemingly incorrect information on dynamicCompressionBeforeCache
I read about dynamicCompressionBeforeCache (here https://github.com/MicrosoftDocs/iis-docs/blob/master/iis/configuration/system.webServer/urlCompression.md) and I read it as if setting it to true. The response will be compressed every time, whether cached or not cached.
Especially this "When dynamicCompressionBeforeCache is false, IIS returns the uncompressed response until the compressed response has been added to the cache directory." says it pretty clearly.
However my experience was that when the setting is set to true. The response are only compressed sometimes and almost never on slightly larger files (> 50 kb). Quite the opposite of what I read. This issue only occured for me with .NET Core websites. On .NET Framework websites the response seemed to be compressed everytime.
Please make sure the information is correct or make it more clear.