Re: images doesn't seem to cache

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

 



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?

No, it's a http header, not a get parameter. I'm not sure if this header is made available under IIS. Under apache you could use apache_request_headers().


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