upendra.gupta Posted April 21, 2017 Share Posted April 21, 2017 Hi,I am not good in English. I want to implement the browser cache for all static content of my project built on jsp/servlet and hosted on tomcat 7, it took more than 10 days and still struggling with a issue to resolved.My Issue is:I have implemented browser cache in my project and it is working fine on local machine or staging/production server when calling with localhost or ipaddress:8080/projname.But when requesting through domain url (www.example.com) cache is not working for any content placed inside css, js, images directory that is placed inside root (WebContent). It worked only for those static content that are directaly placed inside root directory (WebContent / WEB-INF).Please help me to identify the issue and what I have to implement else to resolve this.Here I have tried both code on the server:Setting up a cache filter in Tomcat or JBoss for static filesEnabling the cache filter in Tomcat 7 Thank you :) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now