Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaScript

 
Shallu Bansal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
--------------------------------------------------------------------------------
I have a problem when ever I use Browser buttons like refresh,back,forward etsit loads the page from the cache, but I want that page should be loaded from the server whenever I use any browser buttons.
 
bill bozeman
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are just surfing the net and you don't want the cached copy then holding down SHIFT while you hit the reload button will give you a fresh copy. You can also empty your cache, and change other settings so that you don't get cached copies.
If you are building a page, and you don't want a user to get a cached copy, you can have a META tag in the head that turns that cache off. The tag looks like this:
<META HTTP-EQUIV="Expires" CONTENT="0">
Hope that answers your question.
Bill
 
Ray Hunter
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also use these types of meta tags as well:
<META http-equiv="Pragma" content="no-cache">
<META http-equiv="Cache-Control" content="no-cache">
These really work good for me.
-- Ray
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic