how to set up both httpexpires and cachecontrol headers web.config

一曲冷凌霜 提交于 2019-12-11 12:18:15

问题


Earlier I was asking the question how to set up both httpexpires and cachecontrol headers

I think I kind of found the answer

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

Now i am not receiving 500 internal error for image requests.

But now I have a new question

Looks like If I set cacheControlMode="UseExpires" it will use httpExpires as content expiratoin but if I set cacheControlMode="UseMaxAge" it will use cacheControlMaxAge as content expiration. So still not clear how to set both cacheControlMaxAge and httpExpires? Is it possible?

来源:https://stackoverflow.com/questions/20831122/how-to-set-up-both-httpexpires-and-cachecontrol-headers-web-config

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!