diff --git a/src/MusicStore.Spa/Infrastructure/NoCacheAttribute.cs b/src/MusicStore.Spa/Infrastructure/NoCacheAttribute.cs index 1e9fcca2de..0b43de4b41 100644 --- a/src/MusicStore.Spa/Infrastructure/NoCacheAttribute.cs +++ b/src/MusicStore.Spa/Infrastructure/NoCacheAttribute.cs @@ -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); }