src/Server.php
private function setHttpCacheHeaders(\DateTime $lastModified, $eTag, $maxAge)
    {
        $this->response->setMaxAge($maxAge);
        $this->response->setPublic();

        if ($this->maxAge === 0) {
            $this->response->headers->set('Cache-Control', 'no-cache');

            return;
        }

        $this->response->setLastModified($lastModified);
        $this->response->setEtag($eTag);
    }
private function setHttpCacheHeaders(\DateTime $lastModified, $eTag, $maxAge)
    {
        $this->response->setMaxAge($maxAge);
        $this->response->setPublic();

        if ($this->maxAge === 0) {
            $this->response->headers->set('Cache-Control', 'no-cache');

            return;
        }

        $this->response->setLastModified($lastModified);
        $this->response->setEtag($eTag);
    }
private function setHttpCacheHeaders ( \ DateTime $ lastModified , $ eTag , $ maxAge ) { $ this -> response -> setMaxAge ( $ maxAge ) ; $ this -> response -> setPublic ( ) ; if ( $ this -> maxAge === 0 ) { $ this -> response -> headers -> set ( 'Cache-Control' , 'no-cache' ) ; return ; } $ this -> response -> setLastModified ( $ lastModified ) ; $ this -> response -> setEtag ( $ eTag ) ; }
Set the appripriate HTTP cache headers.

@param \DateTime $lastModified the last time the resource was modified
@param string    $eTag         unique eTag for the resource
@param int       $maxAge       the max age (in seconds)
Set the appripriate HTTP cache headers .