Sorry, if my question is a beginnary question. I'm a newbie in Tomcat.
I have a static page which loads large js/css files. How can i tell Tomcat to add expires header when serving them to browser? I' looking for something similar to .htaccess mechanism in Tomcat.
(I use Tomcat, because in my html pages i make some request to a Java-based application- which has already been added to Tomcat. But that's totally a separate application from my webpages.)
I believe the primary way you do client-side cache control in Tomcat is by coding it on a per-file basis for the static content. For example, using META tags.
There is a "gotcha", though. When Tomcat is doing secured transfers (SSL/TLS), it will override the caching tags on the outgoing response stream for security reasons. The reason for that is that they assume that if it's sensitive enough to transfer encrypted, it's sensitive enough that you don't want to be keeping a copy on the client, where the copy can possibly be hacked. Or an exploit can leak in from before the SSL switch occurred.
When it comes to destroying a civilization, gas chambers cannot hold a candle to echo chambers.