mirror of
https://github.com/koel/koel
synced 2024-09-20 22:32:01 +00:00
Use correct Last-Modified date (fixes #709)
This commit is contained in:
parent
e5a947c9ba
commit
cdf9faafbf
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ class PHPStreamer extends Streamer implements StreamerInterface
|
|||
// Send standard headers
|
||||
header("Content-Type: {$this->contentType}");
|
||||
header("Content-Length: $length");
|
||||
header('Last-Modified: Sat, 26 Jul 1997 00:00:00 GMT'); // leverage browser caching
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s T', filemtime($this->song->path)));
|
||||
header('Content-Disposition: attachment; filename="'.basename($this->song->path).'"');
|
||||
header('Accept-Ranges: bytes');
|
||||
|
||||
|
|
Loading…
Reference in a new issue