src/Leevel/Http/FileResponse.php
public function setAutoEtag(): IResponse
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $etag = base64_encode(hash_file('sha256', $this->file->getPathname(), true));

        $this->setEtag($etag);

        return $this;
    }
public function setAutoEtag(): IResponse
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $etag = base64_encode(hash_file('sha256', $this->file->getPathname(), true));

        $this->setEtag($etag);

        return $this;
    }
自动设置标记.

@return $this