From ae930172fd73d372ad531240a64c178053ac6385 Mon Sep 17 00:00:00 2001 From: "physikerwelt (Moritz Schubotz)" Date: Wed, 15 Oct 2014 18:42:20 +0200 Subject: [PATCH] Adjust caching times for svg images In the first period we set the caching time for server-side caching to 1 week and the value for client-side caching to 1 hour. Change-Id: Ieab63dfe9a00f31d64945180d7b0d98b9fe62b39 --- SpecialMathShowImage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpecialMathShowImage.php b/SpecialMathShowImage.php index 32f2f08..d919e38 100644 --- a/SpecialMathShowImage.php +++ b/SpecialMathShowImage.php @@ -32,7 +32,7 @@ class SpecialMathShowImage extends SpecialPage { $request->response()->header( "Content-type: image/svg+xml; charset=utf-8" ); } if ( $success && !( $this->noRender ) ) { - $request->response()->header( 'Cache-Control: public max-age=2419200' ); // 4 weeks + $request->response()->header( 'Cache-Control: public, s-maxage=604800, max-age=3600' ); // 1 week (server) 1 hour (client) $request->response()->header( 'Vary: User-Agent' ); } }