RE: images doesn't seem to cache

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

 



To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm



On 06 November 2004 20:09, anders thoresson wrote:

> >  This code seems to work. Have I got it right?
> 
>   No. I have not. Sometimes the images are viewed from the
> cache, just
> to get downloaded from the server again next time, just a
> minute later,
> when I try again.
> 
>   My local development server is running IIS, my production server is
> running Apache. Where is the best place to look for If-Modified-Since?
> Is $_GET['If-Modified-Since'] a safe bet?

For Apache, I found it in $_SERVER['HTTP_IF_MODIFIED_SINCE']; if IIS passes
it to PHP, I would definitely expect it to be in $_SERVER[].

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: m.ford@xxxxxxxxxxxxxx
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

-- 
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