From: Tim Düsterhus Date: Fri, 25 Aug 2023 08:08:33 +0000 (+0200) Subject: Disable response caching in CoreRewriteTestAction X-Git-Tag: 6.0.0_Beta_4~54^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=20baa6ad021a325c20055157876af218327d71b2;p=GitHub%2FWoltLab%2FWCF.git Disable response caching in CoreRewriteTestAction --- diff --git a/wcfsetup/install/files/lib/action/CoreRewriteTestAction.class.php b/wcfsetup/install/files/lib/action/CoreRewriteTestAction.class.php index 0121869ba1..cabcd15279 100644 --- a/wcfsetup/install/files/lib/action/CoreRewriteTestAction.class.php +++ b/wcfsetup/install/files/lib/action/CoreRewriteTestAction.class.php @@ -3,6 +3,7 @@ namespace wcf\action; use Laminas\Diactoros\Response\JsonResponse; +use wcf\util\HeaderUtil; /** * Internal action used to run a test for url rewriting. @@ -23,11 +24,11 @@ final class CoreRewriteTestAction extends AbstractAction { parent::execute(); - return new JsonResponse( + return HeaderUtil::withNoCacheHeaders(new JsonResponse( [ 'core_rewrite_test' => 'passed', ], 200, - ); + )); } }