[GH-ISSUE #709] Problems in PHPStreamer - Wrong Last-Modified #502

Closed
opened 2026-02-26 02:33:23 +03:00 by kerem · 1 comment
Owner

Originally created by @skeyby on GitHub (Jan 4, 2018).
Original GitHub issue: https://github.com/koel/koel/issues/709

In PHPStreamer there's a "dummy" Last-Modified around line 80. This can lead to "funny" behaviors when a file is effectively touched on disk.

The corrisponding PHP line can be changed to this to reflect the real last-modified for the file:

header('Last-Modified: '.gmdate('D, d M Y H:i:s T', filemtime($this->song->path)));

Originally created by @skeyby on GitHub (Jan 4, 2018). Original GitHub issue: https://github.com/koel/koel/issues/709 In PHPStreamer there's a "dummy" Last-Modified around line 80. This can lead to _"funny"_ behaviors when a file is effectively touched on disk. The corrisponding PHP line can be changed to this to reflect the real last-modified for the file: `header('Last-Modified: '.gmdate('D, d M Y H:i:s T', filemtime($this->song->path)));`
kerem closed this issue 2026-02-26 02:33:23 +03:00
Author
Owner

@phanan commented on GitHub (Jan 4, 2018):

Hmm. Can you send a PR? Thanks!

<!-- gh-comment-id:355345067 --> @phanan commented on GitHub (Jan 4, 2018): Hmm. Can you send a PR? Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#502
No description provided.