note 122494 deleted from function.header by crell
| From: | crell@php.net | Date: | Thu, 19 May 2022 16:18:41 +0000 |
| Subject: | note 122494 deleted from function.header by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-218499@lists.php.net to get a copy of this message | ||
Note Submitter: 2962051004 at qq dot com
----
<?php
/*
In some special cases, to disable a web page from being cached by the browser, the following
function can implement this function:
*/
function disabledcache()
{
header("Expires: 0"); // ååå
¼å®¹HTTP/1.0
header("Pragma: no-cache"); // æ¯æHTTP/1.1
header("Cache-Control: no-cache,no-store,max-age=0,s-maxage=0,must-revalidate");
}