mirror of
https://github.com/koel/koel
synced 2024-11-27 22:40:26 +00:00
Better .htaccess cache (fixes 706)
This commit is contained in:
parent
e11e9d1392
commit
a0ece494c7
1 changed files with 16 additions and 2 deletions
18
.htaccess
18
.htaccess
|
@ -29,10 +29,24 @@
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
<IfModule mod_expires.c>
|
<IfModule mod_expires.c>
|
||||||
# Cache the audio files for 1 year.
|
# Cache the audio and other static files.
|
||||||
# It's up to the browser to respect this.
|
# It's up to the browser to respect this.
|
||||||
ExpiresActive On
|
ExpiresActive On
|
||||||
ExpiresByType audio/(mpe?g3?|ogg|aac) "access plus 1 year"
|
|
||||||
|
ExpiresByType audio/mp3 "access plus 1 year"
|
||||||
|
ExpiresByType audio/mpg "access plus 1 year"
|
||||||
|
ExpiresByType audio/mpeg "access plus 1 year"
|
||||||
|
ExpiresByType audio/ogg "access plus 1 year"
|
||||||
|
ExpiresByType audio/aac "access plus 1 year"
|
||||||
|
ExpiresByType audio/m4a "access plus 1 year"
|
||||||
|
|
||||||
|
ExpiresByType image/gif "access plus 1 month"
|
||||||
|
ExpiresByType image/jpeg "access plus 1 month"
|
||||||
|
ExpiresByType image/png "access plus 1 month"
|
||||||
|
|
||||||
|
ExpiresByType font/ttf "access plus 1 month"
|
||||||
|
ExpiresByType font/woff "access plus 1 month"
|
||||||
|
ExpiresByType image/svg+xml "access plus 1 month"
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
<IfModule mod_deflate.c>
|
<IfModule mod_deflate.c>
|
||||||
|
|
Loading…
Reference in a new issue