tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Choudh...@labware.com
Subject how to configure Tomcat for leveraging browser caching?
Date Wed, 27 Jun 2012 07:16:59 GMT
Hi , 
     I ran Google's Page Speed(
https://developers.google.com/speed/pagespeed/ ) on our web app to analyze 
and optimize our web site .

One of the many items under Web Performance Best Practices (
https://developers.google.com/speed/docs/best-practices/caching#LeverageBrowserCaching 
) as listed in Page Speed says "To take advantage of the full benefits of 
caching consistently across all browsers, we recommend that you configure 
your web server to explicitly set caching headers and apply them to all 
cacheable static resources, not just a small subset (such as images). 
Cacheable resources include JS and CSS files, image files, and other 
binary object files (media files, PDFs, Flash files, etc.). In general, 
HTML is not static, and shouldn't be considered cacheable."
How do I configure tomcat to achieve the same ? I know it can be done via 
Filters by putting some HTTP headers but can we do it without touching 
code just by configuration ?

Regards,

Subhrajyoti 
Mobile: +919830079545
Mail: choudhury@labware.com
Web: www.labware.com

LabWare LIMS Solutions - Results Count
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message