views:

35

answers:

0

Hi All,i want to ask about the way to expire the output caching of a specific page programatically 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 wanna know why the RemoveOutputCacheItem method does not work..it looks that it is the one made to do that job,,any ideas?