|
-
Jan 11th, 2004, 02:48 PM
#1
Thread Starter
Hyperactive Member
A question about caching!!
Last edited by raladin; Mar 29th, 2014 at 11:15 PM.
-
Jan 11th, 2004, 02:54 PM
#2
Frenzied Member
Source: www.php.net
PHP scripts often generate dynamic content that must not be cached by the client browser or any proxy caches between the server and the client browser. Many proxies and clients can be forced to disable caching with:
PHP Code:
<?php
// Date in the past
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// always modified
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
// HTTP/1.0
header("Pragma: no-cache");
?>
This would have probably been better suited to the PHP forum by the way
Last edited by TomGibbons; Feb 9th, 2004 at 04:59 AM.
-
Jan 11th, 2004, 02:57 PM
#3
Thread Starter
Hyperactive Member
Last edited by raladin; Mar 29th, 2014 at 11:21 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|