Attempt to fix #550 by setting Last-Modified header

This commit is contained in:
An Phan 2017-03-23 08:53:07 +08:00
parent 3fc10e3043
commit f2db3bac89
No known key found for this signature in database
GPG key ID: 05536BB4BCDC02A2

View file

@ -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');