Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP headers for static resources

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?

like image 375
Edi Avatar asked Jun 11 '26 04:06

Edi


1 Answers

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.

like image 104
笑笑十年 Avatar answered Jun 13 '26 18:06

笑笑十年



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!