diff --git a/src/Readarr.Http/Frontend/Mappers/CacheBreakerProvider.cs b/src/Readarr.Http/Frontend/Mappers/CacheBreakerProvider.cs index fa0bf5621..20777809c 100644 --- a/src/Readarr.Http/Frontend/Mappers/CacheBreakerProvider.cs +++ b/src/Readarr.Http/Frontend/Mappers/CacheBreakerProvider.cs @@ -1,6 +1,8 @@ +using System; using System.Collections.Generic; using System.Linq; using NzbDrone.Common.Crypto; +using NzbDrone.Common.EnvironmentInfo; using NzbDrone.Common.Extensions; namespace Readarr.Http.Frontend.Mappers @@ -28,6 +30,11 @@ namespace Readarr.Http.Frontend.Mappers return resourceUrl; } + if (!RuntimeInfo.IsProduction) + { + return resourceUrl + "?t=" + DateTime.UtcNow.Ticks; + } + var mapper = _diskMappers.Single(m => m.CanHandle(resourceUrl)); var pathToFile = mapper.Map(resourceUrl); var hash = _hashProvider.ComputeMd5(pathToFile).ToBase64();