PDA

View Full Version : Static html


Dan
12-25-2005, 11:18 AM
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.

Dan
12-25-2005, 12:23 PM
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.

Dan
12-25-2005, 04:56 PM
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.

Dan
12-25-2005, 05:46 PM
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=&quot;Pragma&quot; content=&quot;no-cache&quot; />
<meta http-equiv=&quot;Expires&quot; content=&quot;-1&quot; />
<meta http-equiv=&quot;Cache-Control&quot; content=&quot;no-cache&quot; />

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.

Dan
12-25-2005, 07:08 PM
nah i think that was my copy and paste job