# Sugar Log — Apache / cPanel settings
AddType application/manifest+json .webmanifest
DirectoryIndex index.html

# Always fetch the newest app files and service worker
<IfModule mod_headers.c>
<FilesMatch "\.(html|js|css|webmanifest)$">
  Header set Cache-Control "no-cache"
</FilesMatch>
</IfModule>

# Force HTTPS (required for install + offline)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
