aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpServer
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-11-24 11:31:05 -0500
committerGitHub <noreply@github.com>2016-11-24 11:31:05 -0500
commit8ad6f3df9129403465a0564d758819eb30f25895 (patch)
tree1863c384aa934500a44255e9538e29cd1c04b6b7 /Emby.Server.Implementations/HttpServer
parent682b02210f42c92e44702f5c9c204bc80c946df5 (diff)
parent9606a2a710614404b4dda96cceff688314a1ec89 (diff)
Merge pull request #2307 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/HttpServer')
-rw-r--r--Emby.Server.Implementations/HttpServer/HttpResultFactory.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs b/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs
index f65331ec7..313db6a75 100644
--- a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs
+++ b/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs
@@ -100,7 +100,8 @@ namespace Emby.Server.Implementations.HttpServer
responseHeaders = new Dictionary<string, string>();
}
- if (addCachePrevention)
+ string expires;
+ if (addCachePrevention && !responseHeaders.TryGetValue("Expires", out expires))
{
responseHeaders["Expires"] = "-1";
}