diff --git a/core/modules/rest/src/Plugin/rest/resource/UserRegistrationResource.php b/core/modules/rest/src/Plugin/rest/resource/UserRegistrationResource.php index 641ee69..d5ce5cc 100644 --- a/core/modules/rest/src/Plugin/rest/resource/UserRegistrationResource.php +++ b/core/modules/rest/src/Plugin/rest/resource/UserRegistrationResource.php @@ -1,15 +1,10 @@ urlInfo('canonical', ['absolute' => TRUE])->toString(TRUE); - $response = new UncacheableResourceResponse(NULL, 201, ['Location' => $url->getGeneratedUrl()]); + $response = new NonCacheableResourceResponse(NULL, 201, ['Location' => $url->getGeneratedUrl()]); return $response; } diff --git a/core/modules/rest/src/Tests/RegisterUserTest.php b/core/modules/rest/src/Tests/RegisterUserTest.php index a5e2d58..d2b5c4a 100644 --- a/core/modules/rest/src/Tests/RegisterUserTest.php +++ b/core/modules/rest/src/Tests/RegisterUserTest.php @@ -1,11 +1,7 @@