Skip to content
Snippets Groups Projects
Commit 09e7f1dc authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

Merge branch 'feat/poc-pwa' into 'dev'

fix(pwa): ghost caching in pwa was making ui unavailable

See merge request web-et-numerique/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_client!199
parents 6734cfec d845a32a
No related branches found
No related tags found
2 merge requests!199fix(pwa): ghost caching in pwa was making ui unavailable,!1981.13
...@@ -6,13 +6,7 @@ ...@@ -6,13 +6,7 @@
"name": "app", "name": "app",
"installMode": "prefetch", "installMode": "prefetch",
"resources": { "resources": {
"files": [ "files": ["/favicon.ico", "/index.html", "/manifest.webmanifest", "/*.css", "/*.js"]
"/favicon.ico",
"/index.html",
"/manifest.webmanifest",
"/*.css",
"/*.js"
]
} }
}, },
{ {
...@@ -20,10 +14,19 @@ ...@@ -20,10 +14,19 @@
"installMode": "lazy", "installMode": "lazy",
"updateMode": "prefetch", "updateMode": "prefetch",
"resources": { "resources": {
"files": [ "files": ["/assets/**", "/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)"]
"/assets/**", }
"/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)" }
] ],
"dataGroups": [
{
"name": "ghost",
"urls": ["/blog/**"],
"cacheConfig": {
"strategy": "freshness",
"maxSize": 10000,
"maxAge": "12h",
"timeout": "5s"
} }
} }
] ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment