Static compression in IIS does not work for htm, js files

前端 未结 3 1246
不思量自难忘°
不思量自难忘° 2021-01-18 10:40

I\'m trying to configure IIS 7.5 to compress static htm and js files. Does anyone know why it does not work for me? Here is my web.config for the web site:

          


        
3条回答
  •  伪装坚强ぢ
    2021-01-18 11:16

    What makes you think the compression is not working? Check the Event View logs. Static Compression module will sometimes throw an error saying the directory being used is invalid (mostly because it needs write permissions).

    Double check with Fiddler or another HTTP debugging tool to be sure that the client is sending "Accept-Encoding" of GZIP/Deflate.

提交回复
热议问题