我目前正在使用:
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
和
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="-1">
<meta http-equiv="pragma" content="no-cache">
但它仍然缓存
哪些浏览器您使用? –
您想永久禁用所有用户的缓存吗?或只是为了发展? –
但浏览器确实发送“If-Modified-Since”请求,或? –