Symfony\Component\HttpFoundation\BinaryFileResponse::setAutoEtag PHP Méthode

setAutoEtag() public méthode

Automatically sets the ETag header according to the checksum of the file.
public setAutoEtag ( )
    public function setAutoEtag()
    {
        $this->setEtag(sha1_file($this->file->getPathname()));
        return $this;
    }