/** * deliver the response to the browser * * @param WebResponse $response the response object * * @return void */ protected function handleWebResponse(WebResponse $response) { $content = $response->prepare($this->request)->getContent(); if (!$this->isDev && $this->request->getMethod() == 'GET') { $this->writeCacheFile($content); } $response->send(); }