public function withNotModified()
    {
        $new = $this->withStatus(304);
        $new->_createStream();
        $remove = [
            'Allow',
            'Content-Encoding',
            'Content-Language',
            'Content-Length',
            'Content-MD5',
            'Content-Type',
            'Last-Modified'
        ];
        foreach ($remove as $header) {
            $new = $new->withoutHeader($header);
        }

        return $new;
    }
public function withNotModified()
    {
        $new = $this->withStatus(304);
        $new->_createStream();
        $remove = [
            'Allow',
            'Content-Encoding',
            'Content-Language',
            'Content-Length',
            'Content-MD5',
            'Content-Type',
            'Last-Modified'
        ];
        foreach ($remove as $header) {
            $new = $new->withoutHeader($header);
        }

        return $new;
    }
public function withNotModified ( ) { $ new = $ this -> withStatus ( 304 ) ; $ new -> _createStream ( ) ; $ remove = [ 'Allow' , 'Content-Encoding' , 'Content-Language' , 'Content-Length' , 'Content-MD5' , 'Content-Type' , 'Last-Modified' ] ; foreach ( $ remove as $ header ) { $ new = $ new -> withoutHeader ( $ header ) ; } return $ new ; }
Create a new instance as 'not modified'

This will remove any body contents set the status code
to "304" and removing headers that describe
a response body.

@return static
Create a new instance as not modified