Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to ask browser and / or server not to cache my pages?  RSS feed

 
Ramina Nibilian
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Sorry if I ask too much in Javaranch its my first Java web project.
I have developed internationalized web site with struts and sitemesh . ....
with help of you and all papers wich i found in the internet . (i buy some books too)

i have a big problem , i think somewhere in client machine or on the server my pages are cached , so when
one change the language it shows prev language pages instead of current language.
for example i have s supportcenters.jsp
i used jsp:include to include the desierd page into the supportcenters.jsp
i think because the name is same for both languages (en , es) it shows the en version which has viewd before.


overall my question is : how i can ask browser ? web server (Tomcat) not to cache the pages?
thank you.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Search this forum and the Servlets forum for this topic -- it's been discussed many times and good info is to be had.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PRAGMA, NO-CACHE, and EXPIRES are some good keywords to use when searching either this site or Google.
 
Ramina Nibilian
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thank you very much
I found valuable comment for my problem here.

Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!