Tushar Ahirrao
Tushar Ahirrao

Reputation: 13115

Want to load .cache.html file of GWT application on client side

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

Answers (3)

Isaac Truett
Isaac Truett

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

Papick Garcia Taboada
Papick Garcia Taboada

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

dty
dty

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

Related Questions