You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do we configure overwrite the staticCompressionLevel in Web.config?
The compression level by default is the slowest one, and on some files it takes more than a minute!
The text was updated successfully, but these errors were encountered:
I had (somewhat) the opposite issue. I wanted static file to be compressed (1 time) as much as possible and then to be served from the server cache. I could not get the last part to work probably because i had cache busting query strings attached to the requests making IIS think its dynamic content.
Until we can set these compressionLevels (don't know if that is possible with extensions) you can either do the same as i did:
I now partially solved this issue by pre-compressing (Gzip & Brotli) all my static files on build with some Gulp tasks and use the nuget package CompressedStaticFiles to serve these pre-compressed static files. These files are probably not served from server cache but i can leverage Azure CDN for that.
Or try to make sure the static compressed files are added to the server cache by setting something like this in the web.config <httpCompression staticCompressionIgnoreHitFrequency="true">
Maybe the extension IISManager can be of use here?
How do we configure overwrite the staticCompressionLevel in Web.config?
The compression level by default is the slowest one, and on some files it takes more than a minute!
The text was updated successfully, but these errors were encountered: