Adding Cache-control to a Tomcat server
All CDN service have the ability to respect whichever cache control directives the origin server sends.
Some even require the origin to provide caching headers, as they don't have the capability to set caching policy at the edge.
Assuming your web application does not supply caching directives, the Tomcat application server has an easy way to set caching via container filters.
ExpiresFilter is a Java Servlet API port of Apache mod_expires. This filter controls the setting of the
ExpiresHTTP header and the
max-agedirective of the
Cache-ControlHTTP header in server responses.
Full documentation is available here https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#Expires_Filter
Edgecast - Understanding default cache TTL (Views: 3157)
How to validate CDN configuration changes (Views: 411)
Fastly - how to Purge by Surrogate Key (Views: 2548)
How to find performance problems on a web page (Views: 698)
Edgecast - Purging via API (Views: 4592)