getResponseFromCache() public static method

Check whether there is a cached version of the page and return a response object
Deprecation: Deprecated since Contao 4.3, to be removed in Contao 5.0. Use proper response caching headers instead.
public static getResponseFromCache ( ) : Response | null
return Symfony\Component\HttpFoundation\Response | null
 /**
  * Forwards the request to the Frontend class and sets the response if any.
  *
  * @param GetResponseEvent $event The event object
  */
 public function onKernelRequest(GetResponseEvent $event)
 {
     if (!$this->isFrontendMasterRequest($event)) {
         return;
     }
     $this->framework->initialize();
     if (null !== ($response = Frontend::getResponseFromCache())) {
         $event->setResponse($response);
     }
 }