I came up with a solution :-) This ALWAYS solution serves as a compressed version.
For me too, in IIS 7.5 Manager, I checked both blocks to compress both:
- Static files
- Dynamic files
Sometimes (the first time the web page is served), it is NOT MESSAGED. Then, only the second time, it is COMPRESSED.
The following solution comes from here: http://www.codeproject.com/Articles/242133/Making-the-most-out-of-IIS-compression-Part-conf
For IIS in ALWAYS to cache the compressed version rather than the uncompressed version, modify the applicationHost.config file. You will usually find this file in the C: \ Windows \ System32 \ inetsrv \ config folder:
- Make a backup of applicationHost.config.
- Open applicationHost.config with a text editor, or - In IIS Manager, go to the default website> Configuration Editor and go to " system.webServer / urlCompression "
- Find the section.
- Add the attribute dynamicCompressionBeforeCache = "true" to the urlCompression element,
- Collapse | Copy code
- Save file applicationHost.config
- IIS Reset server for new attribute to take effect
- Launch IIS Manager, click the server at the top of the tree and click Restart on the right.
Hope this saves your day since it saved mine!
Alexlaforge
source share