0

i output cached my .aspx page for a long period of time, now i want to change some markup on the page, how can i make it invalidate its cache(make it refresh it self)?

2
Contributors
6
Replies
7
Views
9 Years
Discussion Span
Last Post by SheSaidImaPregy
0

Well you will need something like:

HttpResponse.RemoveOutputCacheItem(Server.MapPath("/directory") & "file.aspx");

or just

HttpResponse.RemoveOutputCacheItem("/directory/file.aspx");

Not entirely sure, haven't used it in a while. Looong time.

Should work.. It's in C# for you too :)

0

Come on shesaid.. why dont you ever try the code yourself and paste it? Please give me an accurate answer

0

Can't, I am at work and at work I work on a linux machine and have no access to FTP connections. Therefore I cannot test anything ^^

0

Well a way you can do it resides in just resetting the expiration the file

Set the expiration on the file to now or now + 1 second.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.