expire() public method

Marks the response stale by setting the Age header to be equal to the maximum age of the response
public expire ( ) : void
return void
Example #1
0
 /**
  * Test Expire
  */
 public function testExpire()
 {
     $this->cacheControl->expire();
     $this->assertEquals(0, $this->cacheControl->getAge());
 }