gzip compression for jsf stuff

后端 未结 1 891
半阙折子戏
半阙折子戏 2021-01-02 23:16

I have an jsf application (mojarra 2.1.8, primefaces 3.3) running on tomcat 6. While analyzing the page in firebug with google page-speed, I realized I could optimize some s

相关标签:
1条回答
  • 2021-01-03 00:15

    Your server.xml is all fine. Your concrete problem is most likely that you've edited the wrong server.xml file. In an IDE like Eclipse, the original Tomcat server installation is by default kept untouched. Instead, Eclipse creates a copy of all its configuration files in the Servers project and uses the workspace metadata to deploy the webapps and ultimately only the Tomcat server engine is been used from the Tomcat installation.

    Make sure that you're editing the right server.xml file, the one in Servers project:

    enter image description here

    Tomcat's own /conf/server.xml file is only used when you start it outside Eclipse, or when you tell Eclipse to take full control over Tomcat installation instead. To do that, doubleclick the Tomcat server entry in Servers view and alter the Server Locations accordingly.

    enter image description here

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