Remove specific header:
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache");
header("Pragma: no-cache");
header_remove("Pragma");
?>
The header_remove() function removes an HTTP header previously set with the header() function.
header_remove(
headername)
Parameter | Description |
---|---|
headername | Optional. Specifies a header name to be removed. If omitted, all previously set headers are removed |
Return Value: | Nothing |
---|---|
PHP Version: | 5.3+ |
Remove all previously set headers:
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache");
header("Pragma: no-cache");
header_remove();
?>
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!