Options -Indexes
DirectoryIndex index.php
# Apache/PHP-FPM strips the Authorization header by default; pass it to PHP for Bearer API keys.
RewriteEngine On
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
SetEnvIf Authorization "(.+)" HTTP_AUTHORIZATION=$1
Require all denied
Header always set X-Content-Type-Options "nosniff"
Header always set Referrer-Policy "same-origin"
AddType application/manifest+json .webmanifest
# Versioned asset URLs (?v=commit) may be cached for a long time.
# sw.js is the exception: a service worker is only updated when this URL is revalidated.
Header set Cache-Control "public, max-age=31536000, immutable"
Header set Cache-Control "no-cache"
Header set Cache-Control "no-cache"