mirror of
https://github.com/koel/koel.git
synced 2026-04-26 09:15:59 +03:00
[GH-ISSUE #706] HTAccess - wrong mod_expire settings for audio files #500
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#500
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/706
The default .htaccess in Koel include a mod_expire setting to leverage caching that it's broken:
The corresponding expire header is never set.
ExpireByType doesn't support regex (as stated in http://httpd.apache.org/docs/current/mod/mod_expires.html#expiresbytype), thus the rule must be corrected/exploded to all the possible matches:
The corresponding Expire header will instantly appear.
As a side note, it could be useful to add an expiration to cover images as well.
@skeyby commented on GitHub (Jan 4, 2018):
ExpiresByType audio/m4a "access plus 1 year"
is missing as well.
@phanan commented on GitHub (Jan 4, 2018):
Thanks @skeyby. Do you want to send a PR over?
@phanan commented on GitHub (Apr 14, 2018):
Fixes in
e11e9d1.