Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net mvc web.config中的MVC客户端缓存不工作_Asp.net Mvc_Web Config_Clientcache - Fatal编程技术网

Asp.net mvc web.config中的MVC客户端缓存不工作

Asp.net mvc web.config中的MVC客户端缓存不工作,asp.net-mvc,web-config,clientcache,Asp.net Mvc,Web Config,Clientcache,我使用iis 8.5在主机上上载我的站点 并将下面的clientCache标记添加到web.config <clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" /> 请求头 User-Agent:Mozilla/5.0 (Windows NT 10.0; …) Gecko/20100101 Firefox/55.0 Accept:

我使用iis 8.5在主机上上载我的站点 并将下面的clientCache标记添加到web.config

<clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" />
请求头

User-Agent:Mozilla/5.0 (Windows NT 10.0; …) Gecko/20100101 Firefox/55.0
Accept:text/css;q=0.1
Accept-Language:en-US,en;q=0.5
Accept-Encoding:gzip, deflate
Referer:http://example.com/
Cookie : __RequestVerificationToken=BE9…onId=drzkhe235jaiulgdq10jmbb1
Connection:keep-alive
If-Modified-Since:Wed, 02 Aug 2017 13:24:25 GMT
If-None-Match:"658df4a892bd31:0"
Cache-Control:max-age=0
我读了相关的帖子,但没有找到答案。
谢谢您的建议。

在查找缓存控件标题之前,请确保完全清除浏览器的文件缓存。如果您正在查找其缓存控制标题的图像已从缓存加载,则在浏览器重新下载之前,您当然不会看到新标题

User-Agent:Mozilla/5.0 (Windows NT 10.0; …) Gecko/20100101 Firefox/55.0
Accept:text/css;q=0.1
Accept-Language:en-US,en;q=0.5
Accept-Encoding:gzip, deflate
Referer:http://example.com/
Cookie : __RequestVerificationToken=BE9…onId=drzkhe235jaiulgdq10jmbb1
Connection:keep-alive
If-Modified-Since:Wed, 02 Aug 2017 13:24:25 GMT
If-None-Match:"658df4a892bd31:0"
Cache-Control:max-age=0