<!-- /general.system.cookie-->
<!-- general.system.http -->
- <option name="http_enable_no_cache_headers">
- <categoryname>general.system.http</categoryname>
- <optiontype>boolean</optiontype>
- <defaultvalue>1</defaultvalue>
- </option>
<option name="http_send_x_frame_options">
<categoryname>general.system.http</categoryname>
<optiontype>boolean</optiontype>
<delete>
<option name="cache_source_memcached_use_pconnect" />
+ <option name="http_enable_no_cache_headers" />
<option name="http_gzip_level" />
<option name="enable_pluginstore_widget" />
<option name="mail_use_formatted_address" />
define('SEARCH_ENGINE', 'mysql');
define('EXCEPTION_PRIVACY', 'public');
define('COOKIE_PREFIX', 'wcf21_');
-define('HTTP_ENABLE_NO_CACHE_HEADERS', 0);
define('HTTP_SEND_X_FRAME_OPTIONS', 1);
define('HTTP_ENABLE_GZIP', 1);
define('PACKAGE_SERVER_AUTH_CODE', '');
// define
define('PACKAGE_ID', 0);
-define('HTTP_ENABLE_NO_CACHE_HEADERS', 0);
define('HTTP_ENABLE_GZIP', 0);
define('HTTP_GZIP_LEVEL', 0);
define('HTTP_SEND_X_FRAME_OPTIONS', 0);
@header('Content-Type: text/html; charset=UTF-8');
// send no cache headers
- if (HTTP_ENABLE_NO_CACHE_HEADERS && !WCF::getSession()->spiderID) {
+ if (!WCF::getSession()->spiderID) {
self::sendNoCacheHeaders();
}
- else if (!empty($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'Firefox') !== false) {
- // Firefox serves pages from cache, causing certain HTML elements to stay in an outdated state
- @header('Cache-Control: no-store');
- }
if (HTTP_ENABLE_GZIP && !defined('HTTP_DISABLE_GZIP')) {
if (function_exists('gzcompress') && !@ini_get('zlib.output_compression') && !@ini_get('output_handler') && isset($_SERVER['HTTP_ACCEPT_ENCODING']) && strstr($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) {
public static function sendNoCacheHeaders() {
@header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
@header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
- @header('Cache-Control: no-cache, must-revalidate');
+ @header('Cache-Control: max-age=0, no-cache, no-store, must-revalidate');
@header('Pragma: no-cache');
}
define('COOKIE_PATH', '');
define('COOKIE_DOMAIN', '');
-define('HTTP_ENABLE_NO_CACHE_HEADERS', 0);
define('HTTP_ENABLE_GZIP', 0);
define('HTTP_GZIP_LEVEL', 1);
define('HTTP_SEND_X_FRAME_OPTIONS', 0);
<item name="wcf.acp.option.error.tooLow"><![CDATA[Der angegebene Wert ist zu gering.{if $option->minvalue !== null} Der minimale Wert ist {#$option->minvalue}.{/if}]]></item>
<item name="wcf.acp.option.http_enable_gzip"><![CDATA[Gzip-Komprimierung aktivieren]]></item>
<item name="wcf.acp.option.http_enable_gzip.description"><![CDATA[Aktiviert die Komprimierung der Inhalte bei der Übertragung vom Server an den Client. Dies reduziert den Traffic und kann den Ladevorgang erheblich beschleunigen.]]></item>
- <item name="wcf.acp.option.http_enable_no_cache_headers"><![CDATA[Seitencaching im Client-Browser verhindern]]></item>
- <item name="wcf.acp.option.http_enable_no_cache_headers.description"><![CDATA[Verhindert zuverlässig das Cachen von einzelnen Seiten und sorgt somit dafür, dass beim Seitenaufruf immer die neueste Version der Seite geladen wird. Führt umgekehrt aber zu höherem Traffic und mehr Serverlast.]]></item>
<item name="wcf.acp.option.http_send_x_frame_options"><![CDATA[Einbindung in einem Frame verhindern]]></item>
<item name="wcf.acp.option.http_send_x_frame_options.description"><![CDATA[Sendet den <a href="{@$__wcf->getPath()}acp/dereferrer.php?url={'http://de.wikipedia.org/wiki/Clickjacking'|rawurlencode}" class="externalURL">„X-Frame-Options“</a> Header um die Einbettung dieser Seite in einem Frame zu verhindern (sendet „SAMEORIGIN“).]]></item>
<item name="wcf.acp.option.image_adapter_type"><![CDATA[Grafik-Bibliothek]]></item>
<item name="wcf.acp.option.error.tooLow"><![CDATA[Under the minimum value{if $option->minvalue !== null} of {#$option->minvalue}{/if}.]]></item>
<item name="wcf.acp.option.http_enable_gzip"><![CDATA[Enable gzip-compression]]></item>
<item name="wcf.acp.option.http_enable_gzip.description"><![CDATA[Compresses content transferred to users, reduces traffic and page load time. Does not affect files, e.g. images.]]></item>
- <item name="wcf.acp.option.http_enable_no_cache_headers"><![CDATA[Prevent browser-caching]]></item>
- <item name="wcf.acp.option.http_enable_no_cache_headers.description"><![CDATA[Prevents browser’s caching ensuring your users are always viewing the latest content. Increases both traffic and server load.]]></item>
<item name="wcf.acp.option.http_send_x_frame_options"><![CDATA[Disallow embedding in a frame]]></item>
<item name="wcf.acp.option.http_send_x_frame_options.description"><![CDATA[Sends the <a href="{@$__wcf->getPath()}acp/dereferrer.php?url={'http://en.wikipedia.org/wiki/Clickjacking'|rawurlencode}" class="externalURL">“X-Frame-Options”</a> header to prevent 3rd party sites from embedding this site in a frame (sends “SAMEORIGIN”).]]></item>
<item name="wcf.acp.option.image_adapter_type"><![CDATA[Graphics Library]]></item>