| 7:38 pm on Jan 7, 2007 (gmt 0)|
|Dabu The Dragon|
| 8:15 pm on Jan 7, 2007 (gmt 0)|
Instead of counting time with JS, would use PHP to count time. Maybe something along the lines of srand() microtime(). If I am understanding your question clearly.
| 9:24 pm on Jan 7, 2007 (gmt 0)|
You might want to take a peek at
Last-Modified as they will also aid you in this.
Hypertext Transfer Protocol [faqs.org]
| 11:01 pm on Jan 7, 2007 (gmt 0)|
This is taken from a script I use to compress web pages, I broke out the header/cache stuff:
(the style codes aren't working, at least in preview mode, so I'm leaving the formatting alone)
// send the requisite header information and character set
// check cached credentials and reprocess accordingly
header ("cache-control: must-revalidate");
// set variable for duration of cached content
$offset = 60 * 60 * 72; //sec:min:hrs you said 3 days, right?
// set variable specifying format of expiration header
$expire = "expires: " . gmdate ("D, d M Y H:i:s", time() + $offset) . " GMT";
// send cache expiration header to the client broswer
That would probably do the job. Don't know who originally wrote this, it's found on several sites.
| 11:30 pm on Jan 7, 2007 (gmt 0)|
Hey, welcome to WebmasterWorld, coastie! ;)
| 12:50 am on Jan 8, 2007 (gmt 0)|
|Hey, welcome to WebmasterWorld, coastie! ;) |
Thanks, eelixduppy. Been meaning to register here for some time, just now got around to it.
| 2:59 pm on Jan 11, 2007 (gmt 0)|
Coastie, will that code guarantee that: