public function cacheUntil($expires)
    {
        if (!is_int($expires)) {
            $expires = strtotime($expires);
        }
        return $this
            ->withHeader('Pragma', 'public')
            ->withHeader('Cache-Control', 'maxage='.($expires - time()))
            ->withHeader('Expires', gmdate('D, d M Y H:i:s', $expires).' GMT');
    }
public function cacheUntil($expires)
    {
        if (!is_int($expires)) {
            $expires = strtotime($expires);
        }
        return $this
            ->withHeader('Pragma', 'public')
            ->withHeader('Cache-Control', 'maxage='.($expires - time()))
            ->withHeader('Expires', gmdate('D, d M Y H:i:s', $expires).' GMT');
    }
public function cacheUntil ( $ expires ) { if ( ! is_int ( $ expires ) ) { $ expires = strtotime ( $ expires ) ; } return $ this -> withHeader ( 'Pragma' , 'public' ) -> withHeader ( 'Cache-Control' , 'maxage=' . ( $ expires - time ( ) ) ) -> withHeader ( 'Expires' , gmdate ( 'D, d M Y H:i:s' , $ expires ) . ' GMT' ) ; }
Make the response cacheable.
@param  int|string     $expires when should the request expire - either a timestamp or strtotime expression
@return self
Make the response cacheable .