View Full Version : Static html
I've got some static html pages that are updated via a perl script, thing is most browsers refuse to check for new copies unless you refresh the page. I've tested this on all major browsers (except safari[I've tested ie5 ie6 opera firefox and konqueor])
So is there anything I can do to make it so the actual page is up to date when someone views it?
Marco van Herwaarden
12-25-2005, 11:56 AM
<a href="http://www.w3.org/TR/html4/struct/global.html#adef-http-equiv" target="_blank">http://www.w3.org/TR/html4/struct/gl...def-http-equiv</a>
Have a look at the Expires example.
http://www.w3.org/TR/html4/struct/global.html#adef-http-equiv
Have a look at the Expires example.
Interesting, thing is with that is I'd have to set the expires date which is hard to do with a static html page that is generated with a perl script as it's not updated at any standard intervals.
Marco van Herwaarden
12-25-2005, 04:48 PM
I guess the perl script can also generate the header, and it should be aware of what time it is when it is running.
So tell it to put in the current time or what?
Marco van Herwaarden
12-25-2005, 05:00 PM
The header line can already be put in the generated file i guess.
Well that was easy ;) After poking Zachery he said that the forumhome in vB uses a nocache in the meta tags.
So I copied it and it works perfect :D
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
filburt1
12-25-2005, 06:31 PM
I hope those quote entities aren't in the script to begin with...they should be literal quotes.
nah i think that was my copy and paste job
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.