This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes JavaScript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "JavaScript " Watch "JavaScript " New topic
Author

JavaScript

Shallu Bansal
Greenhorn

Joined: Nov 27, 2000
Posts: 1
--------------------------------------------------------------------------------
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

Joined: Jun 30, 2000
Posts: 1070
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

Joined: Aug 01, 2000
Posts: 20
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaScript