This commit is contained in:
2021-03-09 19:16:55 +08:00
parent 8484cddba0
commit 2f61803469
+2 -2
View File
@@ -300,9 +300,9 @@ class Response extends HttpService
$this->response->setHeader('cache-control', 'max-age=600');
$this->response->setHeader('vary', 'Accept-Encoding');
$this->response->setHeader('via', '1.1 varnish');
$this->response->setHeader('content-encoding', 'gzip');
// $this->response->setHeader('content-encoding', 'gzip');
// $this->response->setHeader('Content-Disposition', ' attachment; filename="' . end($name) . '"');
// $this->response->gzip(5);
$this->response->gzip(5);
$this->response->sendfile($path);
//