How to set different Cache expire times for Client and Server caches

后端 未结 3 1052
暗喜
暗喜 2021-02-07 16:33

I would like to have certain pages have a 10 minute Cache for clients and 24 hours for the server. The reason is if the page changes, the client will fetch the updated version w

3条回答
  •  独厮守ぢ
    2021-02-07 17:03

    In your OutputCache profile, set the location to ServerAndClient. Your action filter should properly override the output once you do this.

提交回复
热议问题