How to set different Cache expire times for Client and Server caches
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 within 10 minutes, but if nothing changes the server will only have to rebuild the page once a day. The problem is that Output Cache settings seem to override the Client settings. Here is what I have setup: Custom ActionFilterAttribute Class public class ClientCacheAttribute : ActionFilterAttribute { private bool _noClientCache; public int ExpireMinutes { get; set; } public ClientCacheAttribute(bool noClientCache) {