mirror of
https://github.com/koel/koel
synced 2024-11-24 05:03:05 +00:00
Add some Expire rules
This commit is contained in:
parent
cbf327c9e6
commit
2aa2f5f27e
1 changed files with 7 additions and 0 deletions
|
@ -35,3 +35,10 @@
|
|||
# Disable deflation for media files.
|
||||
SetEnvIfNoCase Request_URI "^/api/play/" no-gzip dont-vary
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_expires.c>
|
||||
# Cache the audio files for 1 year.
|
||||
# It's up to the browser to respect this.
|
||||
ExpiresActive On
|
||||
ExpiresByType audio/(mpe?g3?|ogg|aac) "access plus 1 year"
|
||||
</IfModule>
|
||||
|
|
Loading…
Reference in a new issue