Physikerwelt has uploaded a new change for review. https://gerrit.wikimedia.org/r/166775
Change subject: Adjust caching times for svg images ...................................................................... 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 --- M SpecialMathShowImage.php 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Math refs/changes/75/166775/1 diff --git a/SpecialMathShowImage.php b/SpecialMathShowImage.php index 32f2f08..c12b9ae 100644 --- a/SpecialMathShowImage.php +++ b/SpecialMathShowImage.php @@ -32,7 +32,8 @@ $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' ); // 1 week (server) + $request->response()->header( 'Cache-Control: public max-age=3600' ); // 1 hour (client) $request->response()->header( 'Vary: User-Agent' ); } } -- To view, visit https://gerrit.wikimedia.org/r/166775 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ieab63dfe9a00f31d64945180d7b0d98b9fe62b39 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Math Gerrit-Branch: master Gerrit-Owner: Physikerwelt <w...@physikerwelt.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits