如何设置httpexpires和cachecontrol头文件web.config

时间:2013-12-29 23:09:37

标签: asp.net-mvc http-headers cache-expiration

早些时候我问了问题how to set up both httpexpires and cachecontrol headers

我想我找到了答案

<clientCache cacheControlCustom="public" httpExpires="Tue, 19 Jan 2038 03:14:07 GMT" cacheControlMaxAge="12:00:00" cacheControlMode="UseExpires" />

现在我没有收到500 internal error图片请求。

但现在我有了一个新问题

如果我设置cacheControlMode="UseExpires",它将使用httpExpires作为内容expiratoin,但如果我设置cacheControlMode="UseMaxAge",它将使用cacheControlMaxAge作为内容过期。那么仍然不清楚如何同时设置cacheControlMaxAgehttpExpires?有可能吗?

0 个答案:

没有答案
相关问题