Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

How to control the HTTP response Cache-Control of a Vaadin AbstractJavaScri

Carsten Rambow
7 years ago Jul 16, 2015 8:36am

I wrote a Vaadin PDF component by using the class AbstractJavaScriptComponent and some JavaScript libraries. The size of all JavaScript libraries are about 1MB. I'm using Vaadin 7.3.x.

The web clients running in a local area network connected with low bandwidth (VPN) to the server. Vaadin provide these libraries with "max-age" of 3600 seconds. 
This means that the web browser will cache these libraries for one hour and will download it again even the libraries hasn't been changed.

Is there a way or a best practice how to control the "Cache-Control" property in the HTTP response?