No Cache - I need a tag that will prevent browsers from caching my page

They have: 32 posts

Joined: Jun 1999

Some of my visitors have complained about having to refresh the page in order to see the new content.

I've added the line:
<meta http-equiv="Pragma" content="no-cache"> to the <head> part of my page, but it doesn't seem to help?

Anyone know of a tag/trick that will work?

-steve

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

The tag you used is the only one I have seen so far for doing this...but I'll keep an eye out in case I see something else. Smiling

----------
Page Resource: http://www.pageresource.com
JavaScript City: http://www.javascriptcity.com

They have: 5,633 posts

Joined: Jan 1970

You could set the http-equiv="expire" to a value in the past, so the browser always thinks its an old document that has to be reloaded from the server.

You can look up the right syntax for the expires tag @ www.w3.org

Later,

Malte

----------
Malte Ubl - Germany - http://goKewl.com/
The beats of 1000 hearts inside ... the merciless pulsation ... and all I know is I'll be back ... back to trance nation!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.