Client side cache

I’m noticing that when I access the page of my vaadin application, nothing is being cached on the client side. I assume there are some huge .js files and .css files that must be downloaded. I see that the browser is downloading a huge amount before the app starts, so the user has to wait until that is done.

The problem is that even pressing the back or reload button, and then re-accessing the page, all this has to be downloaded again, thereby making the app slow to start every time.

This does not seem to be the case on the Vaadin demo site. The slow inital load only happens the first time the page is accessed. All subsequent visits to the page, the apps start immediately.

I’m running on tomcat 5.5, but I cannot seem to find any sort of client-side cache control. Any guidance here will be a big help :slight_smile: