Re: how do I stop Firefox doing a conditional get?

From: Date: Wed, 14 May 2008 10:58:59 +0000
Subject: Re: how do I stop Firefox doing a conditional get?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-274297@lists.php.net to get a copy of this message
2008/5/14 Per Jessen <per@computer.org>: > All, > > not really PHP related, but I figured someone here would already > have solved this problem. > I've got a page with a single <img>. I change the src attribute > dynamically using javascript. Although the images being served all > have long expiry times, Firefox still does a conditional get to which > apache says "304" as it should. > > The issue is - I'd like this page to appear to be as "real time" as > possible, and the occasional delay caused by the conditional get is a > nuisance. My images are clearly cached, so how do I prevent Firefox > from doing the conditional get ? There must be some HTTP header I can > use. You can use either or both of 'Expires' or 'Cache-Control' -robin

« previous php.general (#274297) next »