0
我有一個簡單的HTML網頁,其中開頭是這樣的:爲什麼max-age被忽略?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Cache-Control" content="public, must-revalidate">
<meta http-equiv="Cache-Control" content="max-age=88000" />
<script type="text/javascript" src="/js/index.js"></script>
....
然而,當我檢查index.js
文件中的FF web控制檯,我看到Cache-Control: "max-age=0"
。爲什麼是這樣的,我該如何解決它?謝謝!
請參閱http://stackoverflow.com/questions/49547/making-sure-a-web-page-is-not-cached-across-all-browsers/ – guest271314