Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apps/web/public/manifest.webmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"scope": "/",
"display": "standalone",
"orientation": "portrait-primary",
"launch_handler": {
"client_mode": ["navigate-existing", "auto"]
},
"background_color": "#fbfaf8",
"theme_color": "#b4552d",
"categories": ["news", "productivity", "utilities"],
Expand Down
10 changes: 9 additions & 1 deletion apps/web/public/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@
// now, so the shell is one URL shorter. Without the bump an install that
// precached the pair under v5 would hold the retired file forever, since
// nothing requests it any more and only the version sweep can evict it.
const VERSION = 'v6';
//
// v7 is a manifest bump: the manifest gained a launch_handler and it is one of
// the shell URLs, so the copy taken at install is now out of date. Nothing
// serves that copy today — the fetch handler below lets .webmanifest fall
// through to the network — but the shell is meant to hold what the site
// currently ships, and the version sweep is the only thing that can replace
// it. The browser reads launch_handler over the network either way, so this
// bump is hygiene rather than the fix.
const VERSION = 'v7';
const SHELL = `shell-${VERSION}`;
const ASSETS = `assets-${VERSION}`;

Expand Down
Loading