src/web/Response.php
public function setCacheHeaders()
    {
        $cacheTime = 31536000; // 1 year
        $this->getHeaders()
            ->set('Expires', gmdate('D, d M Y H:i:s', time() + $cacheTime) . ' GMT')
            ->set('Pragma', 'cache')
            ->set('Cache-Control', 'max-age=' . $cacheTime);

        return $this;
    }
public function setCacheHeaders()
    {
        $cacheTime = 31536000; // 1 year
        $this->getHeaders()
            ->set('Expires', gmdate('D, d M Y H:i:s', time() + $cacheTime) . ' GMT')
            ->set('Pragma', 'cache')
            ->set('Cache-Control', 'max-age=' . $cacheTime);

        return $this;
    }
public function setCacheHeaders ( ) { $ cacheTime = 31536000 ; // 1 year $ this -> getHeaders ( ) -> set ( 'Expires' , gmdate ( 'D, d M Y H:i:s' , time ( ) + $ cacheTime ) . ' GMT' ) -> set ( 'Pragma' , 'cache' ) -> set ( 'Cache-Control' , 'max-age=' . $ cacheTime ) ; return $ this ; }
Sets headers that will instruct the client to cache this response.

@return static self reference
Sets headers that will instruct the client to cache this response .