diff --git a/src/Lidarr.Http/Extensions/ReqResExtensions.cs b/src/Lidarr.Http/Extensions/ReqResExtensions.cs index 6c12b3cbd..9b38a9d60 100644 --- a/src/Lidarr.Http/Extensions/ReqResExtensions.cs +++ b/src/Lidarr.Http/Extensions/ReqResExtensions.cs @@ -11,6 +11,7 @@ namespace Lidarr.Http.Extensions public static class ReqResExtensions { private static readonly NancyJsonSerializer NancySerializer = new NancyJsonSerializer(); + private static readonly string Expires = DateTime.UtcNow.AddYears(1).ToString("r"); public static readonly string LastModified = BuildInfo.BuildDateTime.ToString("r"); @@ -52,8 +53,8 @@ namespace Lidarr.Http.Extensions public static IDictionary EnableCache(this IDictionary headers) { - headers["Cache-Control"] = "max-age=31536000 , public"; - headers["Expires"] = "Sat, 29 Jun 2020 00:00:00 GMT"; + headers["Cache-Control"] = "max-age=31536000, public"; + headers["Expires"] = Expires; headers["Last-Modified"] = LastModified; headers["Age"] = "193266";