#5224: Fix for missing charset in response header for cached output

This commit is contained in:
Xeevis
2015-05-13 15:24:46 +02:00
parent 40243f2224
commit 7cdb984f4f

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"));