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}] # No SetEnvIf here: since 2026-10-29 the host rejects it in .htaccess (HTTP 500 for the whole folder). # The rewrite rule above already passes the header (bootstrap.php also reads REDIRECT_HTTP_AUTHORIZATION). 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"