Re: refreshing pages in the cache
| From: | Sean Greenslade | Date: | Thu, 28 Apr 2011 00:40:56 +0000 |
| Subject: | Re: refreshing pages in the cache | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312519@lists.php.net to get a copy of this message | ||
On Wed, Apr 27, 2011 at 4:42 PM, Jim Giner <jim.giner@albanyhandball.com>wrote:
> I"m trying to make my webpages display random photos on a border. Got it
> all working now but have a question about the IE cache. Seems that once
> the
> page has been displayed, no amount of "refresh" will make the page
> "rebuild"
> and thus show 'different' pics the second time around.
>
> Can php do something about a page in the cache? I know that the cache is
> there to speed up performance and all, but I thought this random image
> thing
> would work if they just hit F5 to see a new array of images.
>
> Can php detect a user-requested 'refresh'?
>
>
>
Though you can't control everything, headers can help.
https://secure.wikimedia.org/wikipedia/en/wiki/List_of_HTTP_header_fields<%20https://secure.wikimedia.org/wikipedia/en/wiki/List_of_HTTP_header_fields>
http://us3.php.net/manual/en/function.header.php
Cache-Control is a nice one. =)
--
--Zootboy
Sent from my PC.