Thanks Geoff!  The thing is that I'd rather not have to add a servlet
filter.

Chris, I'm on Tomcat 7.0.53.  The files don't have .gz extensions; they end
in .json and .terrain.  If I have gzip="true" will tomcat add
"Content-encoding: gzip" to all requests or only for files that end in
.gz?  Having "Content-encoding: gzip" is the only way the browsers will
gunzip on the fly.  I was able to accomplish what I need with Apache with
the following configuration, but my preference is to use Tomcat.

AddType application/json .json
AddType application/vnd.quantized-mesh .terrain
AddEncoding x-gzip .gz .tgz .json .terrain

Thanks!

Reply via email to