X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Factions%2FRawAction.php;h=f6c4472f2ae8f012713b3c305995f7cc24e08087;hb=dfec83932fd38a9086eb5a2e212889ad00f35b0e;hp=14f76037858eb86beb28827798b7f4a23c414954;hpb=447574ceb746c2f4026a8bf77632bdc4604314bb;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/actions/RawAction.php b/includes/actions/RawAction.php index 14f7603785..f6c4472f2a 100644 --- a/includes/actions/RawAction.php +++ b/includes/actions/RawAction.php @@ -50,6 +50,7 @@ class RawAction extends FormlessAction { /** * @suppress SecurityCheck-XSS Non html mime type + * @return string|null */ function onView() { $this->getOutput()->disable(); @@ -58,16 +59,16 @@ class RawAction extends FormlessAction { $config = $this->context->getConfig(); if ( !$request->checkUrlExtension() ) { - return; + return null; } if ( $this->getOutput()->checkLastModified( $this->page->getTouched() ) ) { - return; // Client cache fresh and headers sent, nothing more to do. + return null; // Client cache fresh and headers sent, nothing more to do. } $contentType = $this->getContentType(); - $maxage = $request->getInt( 'maxage', $config->get( 'SquidMaxage' ) ); + $maxage = $request->getInt( 'maxage', $config->get( 'CdnMaxAge' ) ); $smaxage = $request->getIntOrNull( 'smaxage' ); if ( $smaxage === null ) { if ( @@ -87,9 +88,6 @@ class RawAction extends FormlessAction { // Set standard Vary headers so cache varies on cookies and such (T125283) $response->header( $this->getOutput()->getVaryHeader() ); - if ( $config->get( 'UseKeyHeader' ) ) { - $response->header( $this->getOutput()->getKeyHeader() ); - } // Output may contain user-specific data; // vary generated content for open sessions on private wikis @@ -173,6 +171,8 @@ class RawAction extends FormlessAction { } echo $text; + + return null; } /**