admin管理员组

文章数量:1353235

I want to use gzip with GWT

Please suggest how do i press my GWT nocache.js,cache.html and gwt.rpc files using gzip

Please help me

Thanks

I want to use gzip with GWT

Please suggest how do i press my GWT nocache.js,cache.html and gwt.rpc files using gzip

Please help me

Thanks

Share Improve this question asked Feb 25, 2011 at 8:10 Tushar AhirraoTushar Ahirrao 13.2k18 gold badges66 silver badges98 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 7

If you're using GWT 2.1 add <inherits name=".google.gwt.prepress.Prepress"/> to your <Module>.gwt.xml file - GWT will then prespress (using gzip) all static resources.

Jetty (6&7) will automatically serve the gzipped version if available...

GWT's RPCServlet checks if the client can handle gzipped content if it can it will be gzipped on the fly.

Generally, gzip is enabled on the server that your files are being hosted on, and you can do it for all files on your site rather than just those 3.

This site helps you test whether gzip is enabled on your site: http://www.whatsmyip/http_pression/

Here's how to turn gzip on with the Apache web server: http://httpd.apache/docs/2.0/mod/mod_deflate.html

本文标签: javascriptIntegrate gzip with GWTStack Overflow