Add some Expire rules

This commit is contained in:
An Phan 2016-01-14 11:28:58 +08:00
parent cbf327c9e6
commit 2aa2f5f27e

View file

@ -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>