Created
May 22, 2014 14:00
-
-
Save nramsbottom/d310775deed1eb540e96 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public abstract class BasePage : System.Web.UI.Page | |
| { | |
| protected override void OnInit(EventArgs e) | |
| { | |
| // cache none of the things! | |
| Response.Cache.SetCacheability(HttpCacheability.NoCache); | |
| Response.Cache.SetNoStore(); | |
| Response.Cache.SetMaxAge(TimeSpan.Zero); | |
| base.OnInit(e); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment