什么是缓存控制的默认值? [英] What's default value of cache-control?
问题描述
我的问题是:有时浏览器通过缓存即使我已经修改他们的一些资源。但F5之后,一切都很好。
My problem is: sometimes browser over-cached some resources even if i've already modified them. But After F5, everything is fine.
我研究这种情况下,整个下午。现在,我完全理解的Last-Modified或缓存控制的地步。我知道如何解决我的问题(只是.js文件?版本或显性最大年龄= XXXX)。但在问题仍然没有解决:如何处理浏览器的响应头的没有的Cache-Control是这样的:
I studied this case whole afternoon. Now i completely understood the point of "Last-Modified" or "Cache-Control". And i know how to solve my issue (just .js?version or explicit max-age=xxxx). But the problem is still unsolved: how does browser handle the response header without "Cache-Control" like this:
Content-Length: 49675
Content-Type: text/html
Last-Modified: Thu, 27 Dec 2012 03:03:50 GMT
Accept-Ranges: bytes
Etag: "0af7fcbdee3cd1:972"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Thu, 24 Jan 2013 07:46:16 GMT
他们显然缓存它们时,在栏中输入
They clearly cache them when "Enter in the bar"
推荐答案
默认Cache-Control头是:私人
The default cache-control header is : Private
一个缓存机制可以缓存在私有缓存此页,然后重新发送只有一个客户端。 这是默认值。大多数代理服务器将不缓存的页面使用此设置。
A cache mechanism may cache this page in a private cache and resend it only to a single client. This is the default value. Most proxy servers will not cache pages with this setting.
请参见的http:// MSDN。 microsoft.com/en-us/library/ms524721%28v=vs.90%29.aspx
这篇关于什么是缓存控制的默认值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!