Need Step-by-Step Overview for Compression on Tomcat

前端 未结 1 1455
太阳男子
太阳男子 2021-01-23 01:36

Need Step-by-Step Overview for Compression on Tomcat 7 ... I\'ve been at this for days. Particularly interested in compressing text/xml in response from a servlet, but would als

相关标签:
1条回答
  • 2021-01-23 02:11

    Did you restart Tomcat after editing server.xml file ? Did you check the logs (logs/catalina.out) to see if there is any error on server startup ? (ie. typo in the config files)

    compression="on"
    

    should work.

    Maybe webpagetest.org doesn't support gzip compression. Why don't you use Chrome Developper Tools (F12, you can see headers in the Network tab) ? or Firefox Web Console (Ctrl+Shift+K) ?

    0 讨论(0)
提交回复
热议问题