Neos\Flow\Tests\Unit\Http\ResponseTest::makeStandardsCompliantRemovesMaxAgeIfNoCacheExists PHP Method

makeStandardsCompliantRemovesMaxAgeIfNoCacheExists() public method

RFC 2616 / 14.9.4
    public function makeStandardsCompliantRemovesMaxAgeIfNoCacheExists()
    {
        $request = Request::create(new Uri('http://localhost'));
        $response = new Response();
        $response->setHeader('Cache-Control', 'no-cache, max-age=240');
        $response->makeStandardsCompliant($request);
        $this->assertEquals('no-cache', $response->getHeader('Cache-Control'));
    }
ResponseTest