This is similar to the discussion in the following link.
I want to enable browser caching by setting an expiry date or a maximum age in the HTTP headers for the static resources. The application which I'm trying to make this change is a complete JavaScript project, which runs on Tomcat.
Is there any server configuration to add headers for static resources?
You can: click here
But tomcat is a java servlet container, why you use it to serve static resources? You should use nginx for static sources.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With