how to clear the cache?

Posted by Hemanth.Gottipati under ASP.NET on 1/7/2013 | Points: 10 | Views : 2507 | Status : [Member] | Replies : 4
Hi All,
How to clear the cache when browser is closed ?
Pls give me suggestions........




Responses

Posted by: Elephant12 on: 1/8/2013 [Member] Starter | Points: 25

Up
0
Down
First at the top of the window click the firefox,then choose the option on tool bar.Then select the advanced panel.In this panel choose Network tab.In the Cached Web Content section, click Clear Now.Finaly click ok,then close the window.

Hemanth.Gottipati, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hemanth.Gottipati on: 1/8/2013 [Member] Starter | Points: 25

Up
0
Down
Hi,
I want code in asp.net...not manually.developing side how to clear the cache when browser closed.......

Hemanth.Gottipati, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shubh on: 1/11/2013 [Member] Starter | Points: 25

Up
0
Down
hi friend

in php it can help you...

$('.button').click(function() {
$.ajax({
url: "",
context: document.body,
success: function(s,x){

$('html[manifest=saveappoffline.appcache]').attr('content', '');

$(this).html(s);
}
});

});

i think its help you

Shubham Agrahari

Hemanth.Gottipati, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sourabh07 on: 1/17/2013 [Member] Starter | Points: 25

Up
0
Down
Hi...

Try the following code :

For Each de As DictionaryEntry In HttpContext.Current.Cache

HttpContext.Current.Cache.Remove(DirectCast(de.Key, String))
Next


or

HttpRuntime.Close()



Please mark the answer, if it resolved your problem.


Sourabh07

Hemanth.Gottipati, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response