Symfony\Component\HttpFoundation\BinaryFileResponse::setAutoEtag PHP Method

setAutoEtag() public method

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;
    }