mirror of
https://github.com/koel/koel.git
synced 2026-04-27 01:35:59 +03:00
[GH-ISSUE #708] Problems in PHPStreamer - Byterange (Optimizations) #501
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#501
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @skeyby on GitHub (Jan 4, 2018).
Original GitHub issue: https://github.com/koel/koel/issues/708
Checking PHPStreamet Byterange stuff furthermore I think there's a specific condition that can be checked to improve performances.
That is when the browser asks for
Range: 0-
That is a (pretty silly IMHO) way to ask for a complete file, not a partial one.
Thus I'd change the code block around line 51 to something like this:
I tested it and it works ok. It's also a great optimization because many load balancer / web accelerator will refuse to cache any content with a 206 http code (see for example apache 2.4 mod cache: https://httpd.apache.org/docs/2.4/caching.html ...
@phanan commented on GitHub (Jan 4, 2018):
Ha, TBH I didn't invent this bunch of code (I think I credited it as well). So if you think it can be optimized/improved, just send a PR over. Cheers!