Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to tell a page not to cache itself

Status
Not open for further replies.

Picqua

Programmer
Jul 23, 2003
7
US
Is there a way that I can have a web page not chace itself on someone's machine when they surf to it? Yes no maybe so? Thanks for the time
 
There are a couple of ways - various tags you'll need to use. Some browsers listen to different tags.

This article explains it well:

[sub]Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
[/sub]
 
Thanks a ton! That's just what I was looking for
 
How to write if I want this :

No cache only happend in certain cases.
example,after user fill up the form,if got any error,then they can click back button to do modification.
But if the form successfully save,then they are not allow to back anoymore ( the page is expired)

Thanks.

HPNG
 
Caching instructions are sent when the page is first loaded, so you'd have no way of predicting whether or not the user was going to input an error and thus whether or not to cache.

Better to re-send the form (but filled in) if it fails validation in your back-end script, rather than rely on the [Back] button.

-- Chris Hunt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top