Tell me please. How to enable caching of files for tomcat 8? Faced the fact that the site is long loaded - squeezed css, js. It became easier, but Google advised to enable browser caching. I do not know how to do this on tomcat 8.
Tomcat does no caching - note that the advice was to enable browser caching. That is done in your HTML by writing the standard HTML cache headers as part of your output response stream.
There is one catch, however. Tomcat will remove cache-control headers from the output that is sent back if you are using secure transport (https). That is a security precaution to ensure that a previous request cannot plant a security "time bomb" in cached data that could exploit output of some other secured request.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.