mirror of
https://github.com/koel/koel
synced 2025-02-16 13:28:32 +00:00
Attempt to fix #550 by setting Last-Modified header
This commit is contained in:
parent
3fc10e3043
commit
f2db3bac89
1 changed files with 1 additions and 0 deletions
|
@ -73,6 +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('Content-Disposition: attachment; filename="'.basename($this->song->path).'"');
|
||||
header('Accept-Ranges: bytes');
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue