Index: branches/5.2.x/core/kernel/application.php =================================================================== diff -u -N -r15073 -r15129 --- branches/5.2.x/core/kernel/application.php (.../application.php) (revision 15073) +++ branches/5.2.x/core/kernel/application.php (.../application.php) (revision 15129) @@ -1,6 +1,6 @@ HTML = ob_get_clean() . $this->HTML; } + $language =& $this->recallObject('lang.current'); + /* @var $language LanguagesItem */ + + // don't replace header if some tag (e.g. XMLTemplate) already set it to something else + header('Content-type: text/html; charset=' . $language->GetDBField('Charset'), false); + if ( $this->UseOutputCompression() ) { $compression_level = $this->ConfigValue('OutputCompressionLevel'); Index: branches/5.2.x/.htaccess =================================================================== diff -u -N -r15041 -r15129 --- branches/5.2.x/.htaccess (.../.htaccess) (revision 15041) +++ branches/5.2.x/.htaccess (.../.htaccess) (revision 15129) @@ -9,11 +9,14 @@ ExpiresActive on - ExpiresByType text/css "access plus 4 hours" - ExpiresByType application/x-javascript "access plus 4 hours" - ExpiresByType image/gif "access plus 4 hours" - ExpiresByType image/jpeg "access plus 4 hours" - ExpiresByType image/png "access plus 4 hours" + ExpiresByType text/css "access plus 1 month" + ExpiresByType application/x-javascript "access plus 1 month" + ExpiresByType application/javascript "access plus 1 month" + ExpiresByType image/gif "access plus 1 month" + ExpiresByType image/jpeg "access plus 1 month" + ExpiresByType image/png "access plus 1 month" + ExpiresByType image/x-icon "access plus 1 month" + ExpiresByType image/icon "access plus 1 month" ## Enable mod-rewrite