Click to See Complete Forum and Search --> : how can i force a refresh on webpages???


bob the spod
04-24-2003, 06:18 AM
how can i force a full refresh of my web pages?

I keep asking friends if they like the changes to my site hazabaza (http://www.hazabaza.co.uk) and they look at me blankly because it hasnt changed - if they do a control+refresh they then say "oh yeah its changed"

what do you suggest I do???

cheers

Bob

requestcode
04-24-2003, 07:31 AM
This link might help:
http://htmlgoodies.earthweb.com/beyond/nocache.html

pyro
04-24-2003, 07:34 AM
Just set up some HTTP headers to keep the page from caching itself.

<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">

Charles
04-24-2003, 09:32 AM
There's no rule that says that browsers have to pay attention to your 'no-cache' instructions so you might want to add the following:

<meta http-equiv="Date" content="-1">
<meta http-equiv="Expires" content="-1">

Note: HTTP headers do not support relative dates, but any illegal date is taken to have occured sometime in the past.