aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-10-01 22:09:33 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-10-01 22:09:33 -0400
commit55a53cfab7e0dcb320f4fe3f4e4273dafe236305 (patch)
tree62d3c33ed3e4f8d1e62a7b285fd1e1094e5f2e91 /MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs
parent460e3635fdc0516d7fce8c12ad6eabaf22d2a275 (diff)
add expires response header
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs')
-rw-r--r--MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs
index c55e98388..04085d3c7 100644
--- a/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs
+++ b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs
@@ -93,12 +93,14 @@ namespace MediaBrowser.Server.Implementations.HttpServer
}
}
}
-
- if (responseHeaders != null)
+ if (responseHeaders == null)
{
- AddResponseHeaders(result, responseHeaders);
+ responseHeaders = new Dictionary<string, string>();
}
+ responseHeaders["Expires"] = "-1";
+ AddResponseHeaders(result, responseHeaders);
+
return result;
}