RE: [PHP] images doesn't seem to cache

From: Date: Tue, 09 Nov 2004 11:14:27 +0000
Subject: RE: [PHP] images doesn't seem to cache
Groups: php.general 
Request: Send a blank email to php-general+get-201606@lists.php.net to get a copy of this message
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@leedsmet.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#201606) next »