R: [PHP] 304 Not Modified

From: Date: Wed, 05 Sep 2001 20:05:14 +0000
Subject: R: [PHP] 304 Not Modified
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66096@lists.php.net to get a copy of this message
Unfortunately it's only wrong typing. That problem's here to stay. ----- Original Message ----- From: Seb Frost <seb@raceshoot.com> To: Ouster <ermannov@libero.it>; <php-general@lists.php.net> Sent: Wednesday, September 05, 2001 9:38 PM Subject: RE: [PHP] 304 Not Modified > You don't think your missing " might have soemthing to do with it? Or maybe > it's not that simple at all..... > > - seb > > -----Original Message----- > From: Ouster [mailto:ermannov@libero.it] > Sent: 05 September 2001 20:23 > To: php-general@lists.php.net > Subject: [PHP] 304 Not Modified > > > I'm making a sort of cache system. I fell to this problem: I leave a cookie > with the timestamp of the last access, and when the user reconnect, I > compare the timestamp of the last change with the timestamp sent me with the > cookie. Then I leave a new cookie. > > So: > if($last_modified <= $last_access) > { > header("304 Not Modified); > exit; > } > else > { > /* code genertating the new page */ > } > > Whether the If is TRUE, I get a blank page, else I see a new page (correct > behaviour). > Why I always get a blank page and not the cached page? > This always happen with PWS and IIS, and sometimes with Apache. > Thanks. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001 > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001 > >

« previous php.general (#66096) next »