From 8f37507ea1497fa682516864f98101115f988675 Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Mon, 15 Jul 2013 11:25:16 -0700 Subject: [PATCH] fixed disabling of app.js cache. --- NzbDrone.Api/Frontend/IAddCacheHeaders.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Api/Frontend/IAddCacheHeaders.cs b/NzbDrone.Api/Frontend/IAddCacheHeaders.cs index e3bb01864..d1a734fb1 100644 --- a/NzbDrone.Api/Frontend/IAddCacheHeaders.cs +++ b/NzbDrone.Api/Frontend/IAddCacheHeaders.cs @@ -1,3 +1,4 @@ +using System; using Nancy; using NzbDrone.Api.Extensions; using NzbDrone.Common.EnvironmentInfo; @@ -19,7 +20,7 @@ public void ToResponse(Request request, Response response) return; } - if (request.Url.Path.ToLower() == "app.js") + if (request.Url.Path.EndsWith("app.js", StringComparison.CurrentCultureIgnoreCase)) { response.Headers.DisableCache(); return;