PHP 没有缓存HTTP标头

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PHP 没有缓存HTTP标头相关的知识,希望对你有一定的参考价值。

header("Content-Type: application/json");
      header("Expires: 0");
      header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
      header("Cache-Control: no-store, no-cache, must-revalidate");
      header("Cache-Control: post-check=0, pre-check=0", false);
      header("Pragma: no-cache");

以上是关于PHP 没有缓存HTTP标头的主要内容,如果未能解决你的问题,请参考以下文章