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 badges2 Answers
Reset to default 7If 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
版权声明:本文标题:javascript - Integrate gzip with GWT - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743927203a2563181.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论