Tomcat Cache Control

Ryan Carrie shared this idea 5 years ago

Can we implement a filter to disable browser caching?

Replies (2)


This Idea has been logged for review by our development team. Subscribe or check back here for further information as it is available.


This can be accomplished using a Tomcat filter. Simply edit your <YellowfinInstall>/appserver/webapps/ROOT/WEB-INF/web.xml file and add the following filter block to your file.

        <param-name>ExpiresByType image</param-name>
        <param-value>access plus 10 days</param-value>
        <param-name>ExpiresByType text/css</param-name>
        <param-value>access plus 10 hours</param-value>
        <param-name>ExpiresByType application/javascript</param-name>
        <param-value>access plus 10 minutes</param-value>
    <!-- Let everything else expire immediately -->
        <param-value>access plus 0 seconds</param-value>

Save and restart Yellowfin to disable browser caching for the application.

Leave a Comment
Attach a file