44 lines
1.5 KiB
ApacheConf
44 lines
1.5 KiB
ApacheConf
AddType application/manifest+json .webmanifest
|
|
|
|
<IfModule mod_expires.c>
|
|
ExpiresActive On
|
|
ExpiresByType text/html "access plus 0 seconds"
|
|
ExpiresByType text/css "access plus 30 days"
|
|
ExpiresByType application/javascript "access plus 30 days"
|
|
ExpiresByType application/json "access plus 30 days"
|
|
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 "achievement_api\.php$">
|
|
Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0"
|
|
Header set Pragma "no-cache"
|
|
Header set Expires "0"
|
|
</FilesMatch>
|
|
<FilesMatch "\.html?$">
|
|
Header set Cache-Control "no-cache, must-revalidate"
|
|
Header set Pragma "no-cache"
|
|
Header set Expires "0"
|
|
</FilesMatch>
|
|
<FilesMatch "\.(css|js|json|webmanifest|ico|png|webp|mp3|wav)$">
|
|
Header set Cache-Control "public, max-age=2592000, immutable"
|
|
</FilesMatch>
|
|
<FilesMatch "service-worker\.js$">
|
|
Header set Cache-Control "no-cache, no-store, must-revalidate"
|
|
Header set Pragma "no-cache"
|
|
Header set Expires "0"
|
|
</FilesMatch>
|
|
</IfModule>
|
|
<IfModule mod_deflate.c>
|
|
AddOutputFilterByType DEFLATE text/html text/css application/javascript application/json text/plain
|
|
</IfModule>
|
|
|
|
|
|
# Never serve hidden server-data paths.
|
|
<IfModule mod_rewrite.c>
|
|
RewriteEngine On
|
|
RewriteRule (^|/)\. - [R=404,L]
|
|
</IfModule>
|