force browser to reload all cache after site update in tomcat.

hi,

how to force browser to reload all cache after site update in tomcat.
Can there be any common configuration(like filter) so that change in any js allows the browser to reload all cache?
RockingAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
No.  The browser cache is controlled by the browser user, not the code from the server.
0
RockingAuthor Commented:
Please check the below url

stackoverflow.com/questions/15936050/force-browser-to-reload-all-cache-after-site-update

I need  a common way in which i can do the same instead of changing every static file
0
GaryCommented:
Use Google modpagespeed to add automatic versioning on your files i.e. when a file changes the version number changes so the latest copy is downloaded by the browser.
I don't see any reason why it wouldn't work with Tomcat

Or just append your url's (Javascript files) with some random querystring.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

RockingAuthor Commented:
I think modpagespeed works with linux?
can u please provide the link to configure modpagespeed with tomcat in windows?
0
GaryCommented:
http://www.iis.net/downloads/community/2013/05/iispeed
I don't know this Windows version so I cannot comment on how it works and if it works the same.
0
RockingAuthor Commented:
as far as i came to know it works with linux based environment not with windows.

Please suggest something in windows?
0
GaryCommented:
That is a Windows app
0
RockingAuthor Commented:
but works with iis not with tomcat.
0
RockingAuthor Commented:
pls respond
0
rrzCommented:
What solution did you use in your other question?  
http://www.experts-exchange.com/Software/Server_Software/Web_Servers/Apache/Q_28503906.html   
Could you build upon it to create a solution here?
0
RockingAuthor Commented:
Yep,It meet my need but Is there any version of modpagespeed  for windows?
0
GaryCommented:
Not for Tomcat
0
RockingAuthor Commented:
what about apache  if we have in front of tomcat?
Please provide steps how to configure the same?
0
RockingAuthor Commented:
didn't get perfect solution related with windows
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.