"NotGiven" <no****@nonegiven.net> wrote in message
news:<QO*****************@bignews3.bellsouth.net>. ..
how do you specify allowing the page to be cached?
By sending the appropriate headers to the client. Example:
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Expires: ' . gmdate('D, d M Y H:i:s', strtotime('+1 hour')) . ' GMT');
This tells the client that the page was last modified when it was
called and will not change for an hour. So a smart client would
cache the page at the first load and won't attempt to load it again
if it visits it within an hour, but rather load a cached copy.
A word of caution: assuming a client is smart can lead to frustrating
results...
Cheers,
NC