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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2008/5/14 Per Jessen <per@xxxxxxxxxxxx>:
> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux