diff --git a/public/sw-field.js b/public/sw-field.js index 7e99640..aa13c50 100644 --- a/public/sw-field.js +++ b/public/sw-field.js @@ -12,7 +12,12 @@ // Cache names are deliberately prefixed with `field-` so they never // collide with the main `rc-shell-v*` / `rc-data-v*` caches. -const SHELL_CACHE = "field-shell-v1"; +// Bumped to v2 after the Apple HIG polish pass (liquid-glass chrome, +// iOS SegmentedControl, ThresholdMeter). The activate handler keeps +// only this name + DATA_CACHE — anything else starting with `field-` +// (including the old v1) is evicted on the next SW activation, which +// happens automatically because the bytes of this file changed. +const SHELL_CACHE = "field-shell-v2"; const DATA_CACHE = "field-data-v1"; const OFFLINE_URL = "/offline.html";