Skip to content

Commit 524ce1f

Browse files
authored
Fix the ProcessFormPostResponse handler to return Cache-Control: no-store instead of no-cache
1 parent 03e1b28 commit 524ce1f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/OpenIddict.Server.AspNetCore/OpenIddictServerAspNetCoreHandlers.Authentication.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ from value in values.GetValueOrDefault()
208208
response.ContentLength = buffer.Length;
209209
response.ContentType = "text/html;charset=UTF-8";
210210

211-
response.Headers[HeaderNames.CacheControl] = "no-cache";
211+
response.Headers[HeaderNames.CacheControl] = "no-store";
212212
response.Headers[HeaderNames.Pragma] = "no-cache";
213213
response.Headers[HeaderNames.Expires] = "-1";
214214

src/OpenIddict.Server.Owin/OpenIddictServerOwinHandlers.Authentication.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ from value in values.GetValueOrDefault()
200200
response.ContentLength = buffer.Length;
201201
response.ContentType = "text/html;charset=UTF-8";
202202

203-
response.Headers[Headers.CacheControl] = "no-cache";
203+
response.Headers[Headers.CacheControl] = "no-store";
204204
response.Headers[Headers.Pragma] = "no-cache";
205205
response.Headers[Headers.Expires] = "-1";
206206

0 commit comments

Comments
 (0)