X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=blobdiff_plain;f=includes%2FAjaxResponse.php;h=0664652a7eaa4e06680e4a06fcde3eed1665479c;hb=5fffa5c07a9b9c3abc4a6a598bc1d2685db60d67;hp=323c5d30ac2778bde6a3a4116e1c12cba2cffa38;hpb=5ed6917b4a630ef5b9d9d9ea68c2f4043cb70f1e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/AjaxResponse.php b/includes/AjaxResponse.php index 323c5d30ac..0664652a7e 100644 --- a/includes/AjaxResponse.php +++ b/includes/AjaxResponse.php @@ -182,16 +182,7 @@ class AjaxResponse { if ( $this->mConfig->get( 'UseCdn' ) ) { # Expect explicit purge of the proxy cache, but require end user agents # to revalidate against the proxy on each visit. - # Surrogate-Control controls our CDN, Cache-Control downstream caches - - if ( $this->mConfig->get( 'UseESI' ) ) { - wfDeprecated( '$wgUseESI = true', '1.33' ); - header( 'Surrogate-Control: max-age=' . $this->mCacheDuration . ', content="ESI/1.0"' ); - header( 'Cache-Control: s-maxage=0, must-revalidate, max-age=0' ); - } else { - header( 'Cache-Control: s-maxage=' . $this->mCacheDuration . ', must-revalidate, max-age=0' ); - } - + header( 'Cache-Control: s-maxage=' . $this->mCacheDuration . ', must-revalidate, max-age=0' ); } else { # Let the client do the caching. Cache is not purged. header( "Expires: " . gmdate( "D, d M Y H:i:s", time() + $this->mCacheDuration ) . " GMT" );