PWA: Manifest, Service Worker, Icons und Offline-Seite
This commit is contained in:
parent
ec88c8ebac
commit
67a1614081
19 changed files with 472 additions and 5 deletions
|
|
@ -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\..*)$">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue