[backend/federation] Add Cache-Control: no-store to authorized fetch endpoints

This commit is contained in:
Laura Hausmann 2024-04-27 20:32:31 +02:00
parent a70b493188
commit 7dd0262333
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -28,6 +28,8 @@ public class AuthorizedFetchMiddleware(
if (attribute != null && config.Value.AuthorizedFetch) if (attribute != null && config.Value.AuthorizedFetch)
{ {
ctx.Response.Headers.CacheControl = "no-store";
var request = ctx.Request; var request = ctx.Request;
var ct = appLifetime.ApplicationStopping; var ct = appLifetime.ApplicationStopping;