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 Expires
HTTP header and the max-age
directive of the Cache-Control
HTTP header in server responses.
Full documentation is available here https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#Expires_Filter
Comments
0 comments
Please sign in to leave a comment.