24 lines
938 B
ApacheConf
24 lines
938 B
ApacheConf
|
|
<IfModule mod_expires.c>
|
||
|
|
ExpiresActive On
|
||
|
|
ExpiresByType text/html "access plus 0 seconds"
|
||
|
|
ExpiresByType text/css "access plus 0 seconds"
|
||
|
|
ExpiresByType application/javascript "access plus 0 seconds"
|
||
|
|
ExpiresByType application/json "access plus 0 seconds"
|
||
|
|
ExpiresByType image/png "access plus 30 days"
|
||
|
|
ExpiresByType image/webp "access plus 30 days"
|
||
|
|
ExpiresByType audio/mpeg "access plus 30 days"
|
||
|
|
ExpiresByType audio/wav "access plus 30 days"
|
||
|
|
</IfModule>
|
||
|
|
<IfModule mod_headers.c>
|
||
|
|
<FilesMatch "\.(html?|css|js|json)$">
|
||
|
|
Header set Cache-Control "no-cache, no-store, must-revalidate"
|
||
|
|
Header set Pragma "no-cache"
|
||
|
|
Header set Expires "0"
|
||
|
|
</FilesMatch>
|
||
|
|
<FilesMatch "\.(png|webp|mp3|wav)$">
|
||
|
|
Header set Cache-Control "public, max-age=2592000"
|
||
|
|
</FilesMatch>
|
||
|
|
</IfModule>
|
||
|
|
<IfModule mod_deflate.c>
|
||
|
|
AddOutputFilterByType DEFLATE text/html text/css application/javascript application/json text/plain
|
||
|
|
</IfModule>
|