问题
No matter what I do:
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="Fri, 30 Apr 2010 11:12:01 GMT" />
<meta http-equiv="Expires" content="0" />
<HTTP-EQUIV="PRAGMA" CONTENT="NO-STORE" />
Google Chrome does not reload any page according to the page's internal cache policy if the page is displayed in a frame. It is as though the meta tags are not even there. Google Chrome seems to be ignoring these tags.
Since I've gotten answers to this question on other forums where the person responding has ignored the operative condition, I will repeat it: this behavior occurs when the page is displayed in a frame.
I was using the latest released version and have since upgraded to 5.0.375.29 beta but the behavior is the same in both versions.
Would someone please care to confirm one way or another the behavior you are seeing with framesets and the caching/expiration policies given in meta tags?
Thanks
回答1:
Did you try those meta tags in both the framed document as well as the parent/hosting document?
来源:https://stackoverflow.com/questions/2798272/google-chrome-does-not-honor-cache-policy-in-page-header-if-the-page-is-displaye