Removed unnecessary spaces
This commit is contained in:
parent
4fa975a416
commit
ea38977599
|
|
@ -380,13 +380,13 @@ namespace Microsoft.AspNetCore.Antiforgery.Internal
|
|||
/// <param name="httpContext">The <see cref="HttpContext"/>.</param>
|
||||
protected virtual void SetDoNotCacheHeaders(HttpContext httpContext)
|
||||
{
|
||||
// Since antifogery token generation is not very obvious to the end users (ex: MVC's form tag generates them
|
||||
// by default), log a warning to let users know of the change in behavior to any cache headers they might
|
||||
// have set explicitly.
|
||||
LogCacheHeaderOverrideWarning(httpContext.Response);
|
||||
// Since antifogery token generation is not very obvious to the end users (ex: MVC's form tag generates them
|
||||
// by default), log a warning to let users know of the change in behavior to any cache headers they might
|
||||
// have set explicitly.
|
||||
LogCacheHeaderOverrideWarning(httpContext.Response);
|
||||
|
||||
httpContext.Response.Headers[HeaderNames.CacheControl] = "no-cache, no-store";
|
||||
httpContext.Response.Headers[HeaderNames.Pragma] = "no-cache";
|
||||
httpContext.Response.Headers[HeaderNames.CacheControl] = "no-cache, no-store";
|
||||
httpContext.Response.Headers[HeaderNames.Pragma] = "no-cache";
|
||||
}
|
||||
|
||||
private void LogCacheHeaderOverrideWarning(HttpResponse response)
|
||||
|
|
|
|||
Loading…
Reference in New Issue