2

我正在尝试为内容过期设置 http 响应标头。我会假设来自服务器的响应头会显示这个,但是我无法弄清楚它是如何传输回调用应用程序的。

当我将“Web 内容过期”设置为 30 分钟后过期时,响应仍然显示以下内容。

Content-Length: 4691
Cache-Control: private, max-age=0
Content-Type: text/html; charset=utf-8
Date: Fri, 16 Nov 2012 20:38:39 GMT
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET

我期待的是类似于以下内容:

Connection: close
Accept-Ranges: bytes
Content-Length: 689
Cache-Control: max-age=1800
Content-Type: text/html
Date: Thu, 08 Nov 2012 00:36:19 GMT
ETag: "f94ce92e467cc1:0"
Last-Modified: Wed, 31 Aug 2011 13:43:48 GMT
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
4

0 回答 0