wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
Getting new browser window to open
loading the pages from server using browser buttons
disabling resize button
Print out of JSP page (Urgent)
Trouble using HttpUnit with Struts 2 tabbedpanel