It all depends where the time is spent. If you have a good Internet connection, you won't see much improvement.
-- Log lightweight metrics (http://www.gwtproject.org/doc/latest/DevGuideLightweightMetrics.html) to have an idea where the time is spent (downloading, evaluating, etc.); you should also use the various tools that your browser provides.
On Monday, January 12, 2015 at 12:24:01 PM UTC+1, Tom wrote:
On Monday, January 12, 2015 at 12:24:01 PM UTC+1, Tom wrote:
Thank you very much for your answer. Ok, I got it but I still did not see it quicker after putting compression="on" into connector of conf/server.xml file. Something is wrong here.
On Monday, January 12, 2015 at 5:31:50 PM UTC+7, Thomas Broyer wrote:.htaccess is an Apache HTTPD configuration file. Apache Tomcat won't honor it. The expected name is also ".htaccess", not "1.htaccess".
On Monday, January 12, 2015 at 5:16:59 AM UTC+1, Tom wrote:My GWT app got a problem . That is the Initial downloading file is quite big. So I want to make it smaller. SO I heard that we can put the gzip configuration into
.htaccessfile in ROOT folder and then all the.cache.htmlfiles will be zipped when downloaded from Server to user personal PCs.So, here is my project structure. The project name Vala
tomcat7/vala/ROOT/in the
ROOTfolder there are:ROOT/images ROOT/vala ROOT/WEB-INF ROOT/vala.css ROOT/vala.htmlin
ROOT/valafolder there are:ROOT/vala/deferredjs/ ROOT/vala/gwt/ ROOT/1BG....cache.html ROOT/5D....cache.html ... more cache.html fileNow I create a
1.htaccessfile as following (I copied this code from internet and don't understand it much):<ifModule mod_gzip.c> mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file .(html?|txt|css|js|php|pl)$ mod_gzip_item_include handler ^cgi-script$ mod_gzip_item_include mime ^text/.* mod_gzip_item_include mime ^application/x-javascript.* mod_gzip_item_exclude mime ^image/.* mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* </ifModule>Then i put this
1.htaccessfile intoROOTfolderROOT/1.htaccessHowever, nothing happened.
SO , how to make your GWT app loading fast by using gzip in .htaccess file
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment