flight\Engine::_lastModified PHP Méthode

_lastModified() public méthode

Handles last modified HTTP caching.
public _lastModified ( integer $time )
$time integer Unix timestamp
    public function _lastModified($time)
    {
        $this->response()->header('Last-Modified', gmdate('D, d M Y H:i:s \\G\\M\\T', $time));
        if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) === $time) {
            $this->halt(304);
        }
    }