tarinai/.htaccess

24 lines
920 B
ApacheConf
Raw Normal View History

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"
</IfModule>
<IfModule mod_headers.c>
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-06-20 23:27:39 +09:00
<FilesMatch "\.(css|js|json|png|webp|mp3|wav)$">
2026-06-19 23:22:15 +09:00
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>