Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1008
  • Last Modified:

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?
0
Rocking
Asked:
Rocking
1 Solution
 
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now