【发布时间】:2014-02-16 12:55:36
【问题描述】:
我正在使用此代码禁用 php 中的缓存,但此代码不适用于任何浏览器。请有人帮助我,我不想将 php 网页保存在缓存中
header('cache-control: no-cache,no-store,must-revalidate');
header('pragma: no-cache');
header('expires: 0');
【问题讨论】:
我正在使用此代码禁用 php 中的缓存,但此代码不适用于任何浏览器。请有人帮助我,我不想将 php 网页保存在缓存中
header('cache-control: no-cache,no-store,must-revalidate');
header('pragma: no-cache');
header('expires: 0');
【问题讨论】:
header("Expires: Tue, 03 Jul 2001 06:00:00 GMT"); // *
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
【讨论】: