tarinai/.htaccess

44 lines
1.5 KiB
ApacheConf
Raw Normal View History

2026-07-29 20:52:11 +09:00
AddType application/manifest+json .webmanifest
2026-06-19 23:22:15 +09:00
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/html "access plus 0 seconds"
2026-06-20 23:27:39 +09:00
ExpiresByType text/css "access plus 30 days"
ExpiresByType application/javascript "access plus 30 days"
ExpiresByType application/json "access plus 30 days"
2026-06-19 23:22:15 +09:00
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"
2026-07-15 14:44:29 +09:00
2026-06-19 23:22:15 +09:00
</IfModule>
<IfModule mod_headers.c>
2026-07-15 14:44:29 +09:00
<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>
2026-06-20 23:27:39 +09:00
<FilesMatch "\.html?$">
Header set Cache-Control "no-cache, must-revalidate"
2026-06-19 23:22:15 +09:00
Header set Pragma "no-cache"
Header set Expires "0"
</FilesMatch>
2026-07-29 20:52:11 +09:00
<FilesMatch "\.(css|js|json|webmanifest|ico|png|webp|mp3|wav)$">
Header set Cache-Control "public, max-age=2592000, immutable"
</FilesMatch>
2026-06-21 14:09:35 +09:00
<FilesMatch "service-worker\.js$">
Header set Cache-Control "no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "0"
</FilesMatch>
2026-06-19 23:22:15 +09:00
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/css application/javascript application/json text/plain
</IfModule>
2026-07-29 20:52:11 +09:00
# Never serve hidden server-data paths.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule (^|/)\. - [R=404,L]
</IfModule>