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

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

try isNotModified($this->request)

See Add CheckHttpCache Component by markstory · Pull Request #16310 · cakephp/cakephp · GitHub

The docs need to be updated

1 Like

thank you @KevinPfeifer please update all documents :v:

@lish You can click the “Edit” button on the docs page and submit a fix yourself.