|
Posted by Jim Higson on 11/29/05 22:28
oeb wrote:
> 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
Indeed, or with no scripting at all, just configure the server to send the
right headers.
http-equivs would probably work too, if you can't change server settings.
> As to the other way around, I'm not so sure.
--
Jim
Navigation:
[Reply to this message]
|