Tell me please. How to enable file caching for tomcat 8 ? Faced with the fact that the site is loaded for a long time - squeezed css , js . It became easier, but Google advises to enable browser caching. How to do it on tomcat 8 I do not know.
Thank.
What Google writes:
Use browser cache
If you specify the date or expiration date of static resources in the HTTP headers, the browser will download the resources already received from the local disk and not from the Internet.
And there is a list of files.
Answer:
Accept-Ranges:bytes Cache-Control:max-age=86400 Content-Encoding:gzip Content-Type:text/css Date:Thu, 20 Apr 2017 09:29:02 GMT ETag:W/"27653-1492672656000" Expires:Fri, 21 Apr 2017 09:29:02 GMT Last-Modified:Thu, 20 Apr 2017 07:17:36 GMT Server:Apache-Coyote/1.1 Transfer-Encoding:chunked Vary:Accept-Encoding