Skip to content

Commit 2bd8142

Browse files
committed
Make SetCacheHeaders protected virtual, and add no-store to the header
Resolves #1920
1 parent 3e205fa commit 2bd8142

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Framework/Framework/Runtime/DefaultOutputRenderer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ public virtual async Task RenderPlainTextResponse(IHttpContext context, string t
122122
await context.Response.WriteAsync(text);
123123
}
124124

125-
private static void SetCacheHeaders(IHttpContext context)
125+
protected virtual void SetCacheHeaders(IHttpContext context)
126126
{
127-
context.Response.Headers["Cache-Control"] = "no-cache";
127+
context.Response.Headers["Cache-Control"] = "no-cache, no-store";
128128
context.Response.Headers["Pragma"] = "no-cache";
129129
context.Response.Headers["Expires"] = "-1";
130130
}

0 commit comments

Comments
 (0)