tags:

views:

38

answers:

3

Hi Guys

I want to load .cache.html file of GWT application on client side ( Browser )

but now when I load my application on browser each time .cache.html file is downloaded from the server

I don't want it to be downloaded on each request , because it's too heavy

Please suggest me solution

Thanks

+1  A: 

You need to configure your server to tell the client to cache that file. All the files with 'cache' in their filename should be configured that way.

dty
can u please tell me the configuration that I need to do ?
Tushar Ahirrao
I'm guessing you're using Apache from the tags you've used. I don't know Apache config, I'm afraid. There should be loads of example on the web. I'd Google for "Apache GWT cache" or something.
dty
+1  A: 

This article pretty much describes all the tricks you can use to reduce your application download times. Covers caching, compressing, imagebundling amongst others.

http://www.infoq.com/articles/gwt-high-ajax

Ashwin Prabhu
A: 

The GWT documentation includes example cache settings for .htaccess on Apache.

<Files *.nocache.*>
  ExpiresDefault "access"
</Files>

<Files *.cache.*>
        ExpiresDefault "now plus 1 year"
</Files>
Isaac Truett