public function withCache($since, $time = '+1 day')
    {
        if (!is_int($time)) {
            $time = strtotime($time);
        }

        return $this->withHeader('Date', gmdate('D, j M Y G:i:s ', time()) . 'GMT')
            ->withModified($since)
            ->withExpires($time)
            ->withSharable(true)
            ->withMaxAge($time - time());
    }
public function withCache($since, $time = '+1 day')
    {
        if (!is_int($time)) {
            $time = strtotime($time);
        }

        return $this->withHeader('Date', gmdate('D, j M Y G:i:s ', time()) . 'GMT')
            ->withModified($since)
            ->withExpires($time)
            ->withSharable(true)
            ->withMaxAge($time - time());
    }
public function withCache ( $ since , $ time = '+1 day' ) { if ( ! is_int ( $ time ) ) { $ time = strtotime ( $ time ) ; } return $ this -> withHeader ( 'Date' , gmdate ( 'D, j M Y G:i:s ' , time ( ) ) . 'GMT' ) -> withModified ( $ since ) -> withExpires ( $ time ) -> withSharable ( true ) -> withMaxAge ( $ time - time ( ) ) ; }
Create a new instance with the headers to enable client caching.

@param string $since a valid time since the response text has not been modified
@param string $time a valid time for cache expiry
@return static
Create a new instance with the headers to enable client caching .