Skip to content

Instantly share code, notes, and snippets.

@sergiomichels
Created September 17, 2013 19:00
Show Gist options
  • Select an option

  • Save sergiomichels/6599091 to your computer and use it in GitHub Desktop.

Select an option

Save sergiomichels/6599091 to your computer and use it in GitHub Desktop.
Enable GZIP for embedded Tomcat, compressing html and javascript.
eventConfigureTomcat = { tomcat ->
tomcat.connector.setAttribute("compression", "on")
tomcat.connector.setAttribute("compressableMimeType", "text/html,text/xml,text/plain,application/javascript")
}
@cemakpolat

Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment