mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-24 23:35:30 +08:00
Update AssetController.php
This commit is contained in:
@@ -74,11 +74,17 @@ class AssetController
|
||||
]);
|
||||
}
|
||||
|
||||
return response()->file($path, [
|
||||
'Content-Type' => $contentType,
|
||||
'Expires' => $this->getHttpDate($expires),
|
||||
'Cache-Control' => $cacheControl,
|
||||
'Last-Modified' => $this->getHttpDate($lastModified),
|
||||
]);
|
||||
response()
|
||||
->file($path, [
|
||||
'Accept-Ranges' => 'bytes',
|
||||
'Content-Length' => filesize($path),
|
||||
'Content-Type' => $contentType,
|
||||
'Expires' => $this->getHttpDate($expires),
|
||||
'Cache-Control' => $cacheControl,
|
||||
'Last-Modified' => $this->getHttpDate($lastModified),
|
||||
])
|
||||
->send();
|
||||
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user