mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-26 01:27:00 +00:00
fixed disabling of app.js cache.
This commit is contained in:
parent
9a5b700671
commit
8f37507ea1
1 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
using System;
|
||||||
using Nancy;
|
using Nancy;
|
||||||
using NzbDrone.Api.Extensions;
|
using NzbDrone.Api.Extensions;
|
||||||
using NzbDrone.Common.EnvironmentInfo;
|
using NzbDrone.Common.EnvironmentInfo;
|
||||||
|
@ -19,7 +20,7 @@ public void ToResponse(Request request, Response response)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (request.Url.Path.ToLower() == "app.js")
|
if (request.Url.Path.EndsWith("app.js", StringComparison.CurrentCultureIgnoreCase))
|
||||||
{
|
{
|
||||||
response.Headers.DisableCache();
|
response.Headers.DisableCache();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue