File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "JavaScript " Watch "JavaScript " New topic


Shallu Bansal

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:
Hope that answers your question.
Ray Hunter

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:
subject: JavaScript