You are here: Re: caching problem « HTML « IT news, forums, messages
Re: caching problem

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация