Link to home
Start Free TrialLog in
Avatar of Jaffer Mahsoob
Jaffer MahsoobFlag for United States of America

asked on

Clear browser cache on site login, is it possible?

I have an application that runs on Tomcat 7.x that users interact with all day, every day.  In order to improve performance it has a handful of large JavaScript libraries that load on login and persist until the users clear their browser cache.  I'm releasing a new version which has newer versions of the libraries but they have the same name.  During testing I realized that if the users didn't clear their browser cache before they logged in, depending on their browser, they would receive errors, lots of them...  Even though the users have been told that they need to clear their browser cache, they don't.  I'm hoping that there is something that I can add to the login page to clear the browser cache, I don't need to clear the whole cache, I just need to dump the libraries that have been previously cached for the application (like clear everything for URL http://application.mydomain.com/*).  

Is it possible to programmatically perform this type of maintenance?  Users have a combination of Chrome, MS Internet Explorer 11, and Firefox, running on Windows, OS X, and Linux.

Thanks,
Jaffer
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial