diff --git a/src/Security/Security.php b/src/Security/Security.php index 2df20eada..a6b533ded 100644 --- a/src/Security/Security.php +++ b/src/Security/Security.php @@ -11,6 +11,7 @@ use SilverStripe\Control\Director; use SilverStripe\Control\HTTPRequest; use SilverStripe\Control\HTTPResponse; use SilverStripe\Control\HTTPResponse_Exception; +use SilverStripe\Control\Middleware\HTTPCacheControlMiddleware; use SilverStripe\Control\RequestHandler; use SilverStripe\Core\ClassInfo; use SilverStripe\Core\Convert; @@ -494,6 +495,7 @@ class Security extends Controller implements TemplateGlobalProvider */ public function ping() { + HTTPCacheControlMiddleware::singleton()->disableCache(); Requirements::clear(); return 1; }