Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I write below code but still not work in firefox 20.0.1.
Still pages are access in offline mode.What is the best practice to do the same.
Response.AppendHeader("Cache-Control", "no-cache") ' 
        Response.AppendHeader("Cache-Control", "private") '
        Response.AppendHeader("Cache-Control", "no-store") ' 
        Response.AppendHeader("Cache-Control", "must-revalidate") '
        Response.AppendHeader("Cache-Control", "max-stale=0") ' 
        Response.AppendHeader("Cache-Control", "post-check=0") ' 
        Response.AppendHeader("Cache-Control", "pre-check=0") '
        Response.AppendHeader("Pragma", "no-cache") '
        Response.AppendHeader("Vary", "*")
        Response.AppendHeader("Expires", "Mon, 26 Jul 1997 05:00:00 GMT")
Posted
Updated 10-Feb-14 21:49pm
v2

 
Share this answer
 
Comments
vishal_h 11-Feb-14 4:12am    
I tried the same but not works on firefox 20.0.1 as able to navigate in offline mode with back button.
[no name] 11-Feb-14 4:15am    
Ok let me check for other solution..
[no name] 11-Feb-14 4:18am    
Check this once

http://stackoverflow.com/questions/11564979/is-it-possible-to-disable-off-line-caching-for-firefox-in-asp-net-at-the-server
Refer..

link1
 
Share this answer
 

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