This commit is contained in:
2021-03-09 19:15:29 +08:00
parent a44d8098ac
commit 00386c5335
+1
View File
@@ -300,6 +300,7 @@ 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-Disposition', ' attachment; filename="' . end($name) . '"');
// $this->response->gzip(5);