diff --git a/BTCPayServer/Hosting/Startup.cs b/BTCPayServer/Hosting/Startup.cs index 58cc25637..ef520ac1d 100644 --- a/BTCPayServer/Hosting/Startup.cs +++ b/BTCPayServer/Hosting/Startup.cs @@ -360,16 +360,5 @@ namespace BTCPayServer.Hosting const int durationInSeconds = 60 * 60 * 24 * 365; ctx.Context.Response.Headers[HeaderNames.CacheControl] = "public,max-age=" + durationInSeconds; } - - private static Action NewMethod() - { - return ctx => - { - // Cache static assets for one year, set asp-append-version="true" on references to update on change. - // https://andrewlock.net/adding-cache-control-headers-to-static-files-in-asp-net-core/ - const int durationInSeconds = 60 * 60 * 24 * 365; - ctx.Context.Response.Headers[HeaderNames.CacheControl] = "public,max-age=" + durationInSeconds; - }; - } } }