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