mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
Revert "feat(api): rm Vary header to allow Cloudflare to cache"
This reverts commit 5977acf4f7.
This commit is contained in:
parent
5977acf4f7
commit
e850889358
1 changed files with 0 additions and 8 deletions
|
|
@ -16,14 +16,6 @@
|
|||
|
||||
app.UseExceptionHandler();
|
||||
app.UseCors();
|
||||
|
||||
// TEMP: allow Cloudflare to cache all responses since data changes infrequently
|
||||
app.Use(async (context, next) =>
|
||||
{
|
||||
await next();
|
||||
context.Response.Headers.Remove("Vary");
|
||||
});
|
||||
|
||||
app.MapEndpoints();
|
||||
app.MapDefaultEndpoints();
|
||||
app.UseSwagger(o => o.RouteTemplate = "{documentName}/openapi.json");
|
||||
|
|
|
|||
Loading…
Reference in a new issue