Created
September 17, 2013 19:00
-
-
Save sergiomichels/6599091 to your computer and use it in GitHub Desktop.
Enable GZIP for embedded Tomcat, compressing html and javascript.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| eventConfigureTomcat = { tomcat -> | |
| tomcat.connector.setAttribute("compression", "on") | |
| tomcat.connector.setAttribute("compressableMimeType", "text/html,text/xml,text/plain,application/javascript") | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I wrote the same configuration under the same place, I see that this configuration is called, but the response header in the browser doesn't show that the page is gzipped. What could be the issue?
My grail version is 2.2.3
Sincerely,
Cem