note 40108 added to function.ob-end-clean
| From: | daijoubuNOSP at Mvideotron dot com | Date: | Sun, 22 Feb 2004 06:11:22 +0000 |
| Subject: | note 40108 added to function.ob-end-clean | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-65511@lists.php.net to get a copy of this message | ||
About the previous comment:
You can also relay on ETag and simply use time()
<?php
$time = time();
$mins = 1;
if (isset($_SERVER['HTTP_IF_NONE_MATCH']) and str_replace('"',
'', $_SERVER['HTTP_IF_NONE_MATCH'])+($mins*60) > $time)
{
header('HTTP/1.1 304 Not Modified');
exit();
}
else
{
header('ETag: "'.$time.'"');
}
echo 'Caching for ', $mins*60, 'secs<br/>', date('G:i:s');
?>
----
Manual Page -- http://www.php.net/manual/en/function.ob-end-clean.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40108
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40108&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40108&report=yes
Search -- http://master.php.net/manage/user-notes.php