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

后端 未结 3 1068
终归单人心
终归单人心 2021-02-07 16:45

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:11

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

提交回复
热议问题