Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Open the server.xml file with your favorite text editor (it's typically found in the tomcat_root/conf folder)
  2. Locate the <Connector> element
  3. Modify it  by adding three compression-related properties as follows

    Code Block
    	compression="on"
    	compressionMinSize="4096"
    	compressableMimeType="text/html,application/json"
    


  4. Restart your tomcat server
  5. Start developer tools in chrome, go to network tab, select the semRootEO file, and check the header to make sure the changes were applied : the content encoding should now be *gzip* 











Info
titleWarning
This is not a solution to all performance issues, and could be detrimental if you compress files that don't need to be compressed : watch your tresholds and don't compress javascript and image files

...