I want to ask about the way to expire the output caching of a specific page programmatically regardless the expiration duration.
I found several posts and articles online regarding this issue and i found on this article that this line of code does the work
HttpResponse.RemoveOutputCacheItem("/caching/CacheForever.aspx");
I tried it several times, but it does not remove the output cache.
In the same demo there was another way to add the output cache using a key added as a cache dependency I tried it and it works fine, but I want to know why the RemoveOutputCacheItem method does not work. It seems that it is the one made to do that job, any ideas?