RE: [PHP] 304 Not Modified
| From: | Seb Frost | Date: | Wed, 05 Sep 2001 19:38:42 +0000 |
| Subject: | RE: [PHP] 304 Not Modified | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66088@lists.php.net to get a copy of this message | ||
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