# HTTPS + bez www
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^ https://pizzaswojska.pl%{REQUEST_URI} [L,R=301]

Options -Indexes
DirectoryIndex index.html

<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
Header always set X-Content-Type-Options "nosniff"
Header always set X-Frame-Options "DENY"
Header always set Referrer-Policy "strict-origin-when-cross-origin"
Header always set Permissions-Policy "camera=(), microphone=(), payment=(), usb=(), geolocation=(self)"
Header always set Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; font-src 'self' data:; img-src 'self' data: blob: https:; connect-src 'self' https://photon.komoot.io https://nominatim.openstreetmap.org https://translate.googleapis.com; frame-src https://maps.google.com https://www.google.com; frame-ancestors 'none'; base-uri 'self'; form-action 'self'; object-src 'none'"
<FilesMatch "(index\.html|sw\.js)$">
Header set Cache-Control "no-cache"
</FilesMatch>
</IfModule>

<FilesMatch "^\.(ht|git)">
Require all denied
</FilesMatch>

<IfModule mod_headers.c>
<FilesMatch "\.(webp|png|woff2)$">
Header set Cache-Control "public, max-age=31536000, immutable"
</FilesMatch>
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/css application/javascript application/json image/svg+xml
</IfModule>
