Reputation: 23800
How can you force user browser to delete its cache that belongs to your website. Is this possible? For example a redirect problem occurs. Later it get fixed. But stupid browser caches redirect due to error and keep doing it.
This is fixed when the cache deleted. Is this possible via asp.net?
Upvotes: 0
Views: 5540
Reputation: 1829
You can't force browsers to clear their cache, you can only give hits of what can be cached.
The only way to avoid your problem is versioning url's and changing the version after the fix. The problem is that you should have done it in advance, and it's not always worth it / practical.
Upvotes: 0
Reputation: 879
huMpty duMpty answer is correct. You cannot force a client to empty its cache as that is a client side file system command.
Upvotes: 0
Reputation: 46008
If we're talking about HTTP301 then you can't do anything about it:
http://getluky.net/2010/12/14/301-redirects-cannot-be-undon/
You can add another redirection though, so if A is redirecting to B and it should redirect to C than change B to redirect to C.
Upvotes: 0
Reputation: 14460
Try using <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
Read more about Useful HTML Meta Tags
How to prevent caching in Internet Explorer
Upvotes: 1