Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have aspx page and added below code for disabling caching

C#
Dim pstr As String = "private, no-cache, no-store ,pre-check=0,post-check=0,must-revalidate"
        Response.AddHeader("Cache-Control", pstr);
        Response.AddHeader("Pragma", "no-cache");
        Response.AddHeader("Expires", "0");
        Response.Cache.SetNoStore();


and add below javascript function in aspx for proper cacher control on firefox
function burstCache() {
if (!navigator.onLine) {
document.body.innerHTML = 'Loading...';
window.location = 'ErrorPage.html';
}
}

.After that i make broswer in offline mode and ,i browsed this aspx page, when browsing cached pages shown. i checked this in firefox35
Posted
Updated 21-Dec-14 20:33pm
v2
Comments
Kornfeld Eliyahu Peter 22-Dec-14 2:20am    
Not working? You have to define it in more details!
Member 10405198 22-Dec-14 2:34am    
thnx sir, i updated my question ,please help me

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900