Merge pull request #5273 from Xeevis/1.9.x

#5224: Fix for missing charset in response header for cached output
This commit is contained in:
Sébastien Ros
2015-05-21 12:21:59 -07:00

View File

@@ -447,6 +447,9 @@ namespace Orchard.OutputCache.Filters {
private void ServeCachedItem(ActionExecutingContext filterContext, CacheItem cacheItem) {
var response = filterContext.HttpContext.Response;
// Fix for missing charset in response headers
response.Charset = response.Charset;
// Adds some caching information to the output if requested.
if (CacheSettings.DebugMode) {
response.AddHeader("X-Cached-On", cacheItem.CachedOnUtc.ToString("r"));