$this->response->checkNotModified() undefined method

@lish lish
Wed, 04 Sep 2024 11:25:00 +0000

Hi! Everyone, I need help
I am just create a cache response in controller according to official Docs… but it show error…

$checksum = md5(json_encode($services));
        $response = $this->response->withEtag($checksum);
        dd($response->checkNotModified($this->request));

so here is, it throw error