没有缓存HTTP头

Posted

tags:

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

HTTP headers to disable caching.
  1. header("Content-Type: application/json");
  2. header("Expires: 0");
  3. header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
  4. header("Cache-Control: no-store, no-cache, must-revalidate");
  5. header("Cache-Control: post-check=0, pre-check=0", false);
  6. header("Pragma: no-cache");

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