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
parent
commit
524ce1fc2a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/OpenIddict.Server.AspNetCore/OpenIddictServerAspNetCoreHandlers.Authentication.cs
  2. 2
      src/OpenIddict.Server.Owin/OpenIddictServerOwinHandlers.Authentication.cs

2
src/OpenIddict.Server.AspNetCore/OpenIddictServerAspNetCoreHandlers.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";

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

@ -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";

Loading…
Cancel
Save