PWA: Manifest, Service Worker, Icons und Offline-Seite

This commit is contained in:
OpenCode 2026-11-13 00:46:02 +01:00
parent ec88c8ebac
commit 67a1614081
19 changed files with 472 additions and 5 deletions

View file

@ -6,6 +6,10 @@ Options -Indexes
DirectoryIndex index.php index.html
AddDefaultCharset UTF-8
<IfModule mod_mime.c>
AddType application/manifest+json .webmanifest
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
@ -32,6 +36,13 @@ AddDefaultCharset UTF-8
<FilesMatch "\.(css|js|svg|png|jpg|jpeg|webp|ico|woff2)$">
Header set Cache-Control "public, max-age=604800"
</FilesMatch>
<FilesMatch "^sw\.js$">
Header set Cache-Control "no-cache, no-store, must-revalidate"
Header set Service-Worker-Allowed "/"
</FilesMatch>
<FilesMatch "^(manifest\.webmanifest|offline\.html)$">
Header set Cache-Control "public, max-age=3600"
</FilesMatch>
</IfModule>
<FilesMatch "^(\.env|\.git.*|composer\..*)$">