.htaccess 750 B

123456789101112131415161718192021
  1. # Ensure the PWA manifest is served with the correct MIME type.
  2. AddType application/manifest+json .webmanifest
  3. # Never serve config.php over HTTP (defense in depth — deploy.sh already excludes it).
  4. <Files "config.php">
  5. Require all denied
  6. </Files>
  7. # The service worker must never be served from a stale browser cache, or an
  8. # update to it can take days to reach an installed app.
  9. <IfModule mod_headers.c>
  10. <Files "sw.js">
  11. Header set Cache-Control "no-cache, max-age=0, must-revalidate"
  12. </Files>
  13. </IfModule>
  14. # Neither the config template nor the migrations belong in the web root, but
  15. # deny them too in case they are copied there by accident.
  16. <FilesMatch "^(config\.sample\.php|.*\.sql)$">
  17. Require all denied
  18. </FilesMatch>