• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Precompression hates me

 
Thomas May
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using GWT with tomcat 6 and 7. I've tried writing a filter to forward things if the requested content + ".gz" exists. That works, except for the fact that the requestDispatcher will commit the request and set the content type to application/x-gzip

How do I fix this?

Here is my current code

 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Tomcat default web.xml includes the following:


which, as I understand it, controls the way the default servlet sets content type when serving resources.

Bill

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic