I'm using the OutputCache attribute to cache my action's html output at the server-side.
Fine, it works, but now I have a situation where the content changes rarely, but when it does, it's critical for the user to see the new data the very next request.
So, is there a way to abort the page cache duration programmatically?
Yes, it is possible using HttpResponse.RemoveOutputCacheItem Method. Check this question:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With