Posted by oeb on 11/29/05 18:20
Bruno wrote:
> Hello Richard
>
> Thanks for your answer!
> Can I programm it within HTML to read from Cache or from the Server first?
>
> Thanks
>
> Bruno
>
<snip>
Using PHP you can force a page not to cache using the header function.
<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
?>
see http://www.php.net/header
I'm sure you can do this with pretty much any language that can output
raw headers
As to the other way around, I'm not so sure.
oeb
Navigation:
[Reply to this message]
|