Make MusicStore.Spa..NoCacheAttribute try *really* hard to prevent caching

This commit is contained in:
DamianEdwards 2014-11-18 17:19:21 -08:00
parent 22ad9b9572
commit 62e84ae620
1 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,9 @@ namespace MusicStore.Spa.Infrastructure
{
public override void OnResultExecuting(ResultExecutingContext context)
{
context.HttpContext.Response.Headers["Cache-Control"] = "private, max-age=0";
context.HttpContext.Response.Headers["Cache-Control"] = "no-cache, no-store, max-age=0";
context.HttpContext.Response.Headers["Pragma"] = "no-cache";
context.HttpContext.Response.Headers["Expires"] = "-1";
base.OnResultExecuting(context);
}