Reputation: 13115
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
Upvotes: 3
Views: 1322
Reputation: 8874
The GWT documentation includes example cache settings for .htaccess on Apache.
<Files *.nocache.*>
ExpiresDefault "access"
</Files>
<Files *.cache.*>
ExpiresDefault "now plus 1 year"
</Files>
Upvotes: 2
Reputation: 11
It can get a little tricky when you have apache serving as proxy for tomcat. Here is how I am doing it.
Upvotes: 1
Reputation: 18998
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.
Upvotes: 1