1

早些时候我问过如何设置 httpexpires 和 cachecontrol 标头的问题

我想我找到了答案

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

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

但现在我有一个新问题

看起来如果我设置cacheControlMode="UseExpires"它将用作内容过期,httpExpires但如果我设置cacheControlMode="UseMaxAge"它将cacheControlMaxAge用作内容过期。所以仍然不清楚如何设置cacheControlMaxAgehttpExpires?可能吗?

4

0 回答 0