Skip to content

Instantly share code, notes, and snippets.

@tegaralaga
Created June 14, 2013 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tegaralaga/5781000 to your computer and use it in GitHub Desktop.
Save tegaralaga/5781000 to your computer and use it in GitHub Desktop.
using System.Web;
namespace WellThen.Helpers
{
public static class UtilsHelper
{
public static void NoCache()
{
HttpContext.Current.Response.AppendHeader("Cache-Control", "no-cache, no-store, must-revalidate");
HttpContext.Current.Response.AppendHeader("Pragma", "no-cache");
HttpContext.Current.Response.AppendHeader("Expires", "0");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment