Home >Backend Development >PHP Tutorial >PHP prohibits page caching output code

PHP prohibits page caching output code

WBOY
WBOYOriginal
2016-07-25 09:03:431140browse
  1. header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
  2. header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . 'GMT');
  3. header('Cache-Control: no-cache, must-revalidate');
  4. header('Pragma: no-cache');
  5. ?>
复制代码


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn