mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
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:
@@ -447,6 +447,9 @@ namespace Orchard.OutputCache.Filters {
|
|||||||
private void ServeCachedItem(ActionExecutingContext filterContext, CacheItem cacheItem) {
|
private void ServeCachedItem(ActionExecutingContext filterContext, CacheItem cacheItem) {
|
||||||
var response = filterContext.HttpContext.Response;
|
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.
|
// Adds some caching information to the output if requested.
|
||||||
if (CacheSettings.DebugMode) {
|
if (CacheSettings.DebugMode) {
|
||||||
response.AddHeader("X-Cached-On", cacheItem.CachedOnUtc.ToString("r"));
|
response.AddHeader("X-Cached-On", cacheItem.CachedOnUtc.ToString("r"));
|
||||||
|
Reference in New Issue
Block a user