# Инвент ОС — настройки сервера (SSL уже установлен)
# Переименуйте файл в .htaccess и положите рядом с index.html
Options -Indexes
DirectoryIndex index.html

AddType application/manifest+json .webmanifest
AddType text/javascript .js
AddType text/html .html
AddType application/zip .zip
AddType image/svg+xml .svg
AddCharset utf-8 .html .js .webmanifest .txt

<IfModule mod_headers.c>
  <FilesMatch "\.(html|js|webmanifest)$">
    Header set Cache-Control "no-cache"
  </FilesMatch>
</IfModule>

# Всегда https (камера и установка приложения работают только так)
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTPS} !=on
  RewriteCond %{HTTP:X-Forwarded-Proto} !https
  RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
