Browse Source
Fix the ProcessFormPostResponse handler to return Cache-Control: no-store instead of no-cache
pull/2295/head
7.0.0-preview.2
Matthias Dittrich
10 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
2 deletions
-
src/OpenIddict.Server.AspNetCore/OpenIddictServerAspNetCoreHandlers.Authentication.cs
-
src/OpenIddict.Server.Owin/OpenIddictServerOwinHandlers.Authentication.cs
|
|
|
@ -208,7 +208,7 @@ public static partial class OpenIddictServerAspNetCoreHandlers |
|
|
|
response.ContentLength = buffer.Length; |
|
|
|
response.ContentType = "text/html;charset=UTF-8"; |
|
|
|
|
|
|
|
response.Headers[HeaderNames.CacheControl] = "no-cache"; |
|
|
|
response.Headers[HeaderNames.CacheControl] = "no-store"; |
|
|
|
response.Headers[HeaderNames.Pragma] = "no-cache"; |
|
|
|
response.Headers[HeaderNames.Expires] = "-1"; |
|
|
|
|
|
|
|
|
|
|
|
@ -200,7 +200,7 @@ public static partial class OpenIddictServerOwinHandlers |
|
|
|
response.ContentLength = buffer.Length; |
|
|
|
response.ContentType = "text/html;charset=UTF-8"; |
|
|
|
|
|
|
|
response.Headers[Headers.CacheControl] = "no-cache"; |
|
|
|
response.Headers[Headers.CacheControl] = "no-store"; |
|
|
|
response.Headers[Headers.Pragma] = "no-cache"; |
|
|
|
response.Headers[Headers.Expires] = "-1"; |
|
|
|
|
|
|
|
|