PDA

View Full Version : force a page to reload each time?




realityisterror
Jun 5, 2004, 12:49 PM
my website (see sig) has my blog on the homepage...
however to see any changes on the site (for example after i make a new post or to check for comments) i have to clear my cache and reload it...
i fear that some people (very very few ;) ) are not seeing any updates because they don't know to clear the cache...

so my question is: is there anyway i can force a page to "redownload" each time i navigate to it?

thanks for your help,
reality



JFreak
Jun 5, 2004, 01:10 PM
i guess you will have to feed a cookie for each visitor's hard disk and tell that the page expires in one minute.

robbieduncan
Jun 5, 2004, 01:27 PM
You need to either add a header to the http response or a tag like this to the top of the page:

<META HTTP-EQUIV="expires" CONTENT="0">

which should tell your browser to expire the page in it's cache right now.

realityisterror
Jun 5, 2004, 01:52 PM
You need to either add a header to the http response or a tag like this to the top of the page:

<META HTTP-EQUIV="expires" CONTENT="0">

which should tell your browser to expire the page in it's cache right now.

i'll give it a shot! thanks...

edit: here's the deal... i use shorturl.com's redirection service... it opens my site (armin.anyxhost.com) in a frame... i figured out that putting that line in the head of my homepage works if i type in "armin.anyxhost.com" but doesn't work if i type in "armin.vze.com"... i need to change shorturl's frameset page, but i don't think i can do that... i'll look in my settings...

edit again: i turned off url masking and it works now... i still have to load the page and then hit reload, but i don't have to empty the cache... maybe if it had been longer than 5 seconds since i last loaded the site, i wouldn't have had to press reload? anyway, thanks :)

reality