Service Worker v10 → v11

Evicts the stale shell + module caches at the next deploy so existing
clients pick up the permit-iframe auth-required card, the new
X-Frame-Options strip, and the import-UX refinements (parse spinner,
client_uuid tagging, geometry/delete persistence, sample values +
Unicode-bold field names in the mapping dropdown).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
ekke 2026-06-23 13:37:23 +00:00
parent 203ca5bc4d
commit 4d594f58e5
2 changed files with 14 additions and 2 deletions

8
dist/sw.js vendored
View File

@ -39,7 +39,13 @@
// staged-upload payload with user_id_upload from SSO); GIS export from // staged-upload payload with user_id_upload from SSO); GIS export from
// Area/Circle Analysis popups (GeoJSON / SHP via shp-write / KML, with // Area/Circle Analysis popups (GeoJSON / SHP via shp-write / KML, with
// field-rename modal). New hashed bundle + shp-write chunk. // field-rename modal). New hashed bundle + shp-write chunk.
const CACHE_VERSION = 'v10'; // v11: Permit-iframe hardening (in-iframe auth-required card replacing the
// 302 redirect, X-Frame-Options strip at both .htaccess and PHP layers);
// import-flow UX refinements (parse spinner, per-feature client_uuid
// tagging, geometry-edit + delete persistence to the staging tables,
// sample values + Unicode-bold field names in the mapping dropdown).
// New hashed bundle + updated embed.php shell.
const CACHE_VERSION = 'v11';
const SHELL_CACHE = `shell-${CACHE_VERSION}`; const SHELL_CACHE = `shell-${CACHE_VERSION}`;
const MODULES_CACHE = `modules-${CACHE_VERSION}`; const MODULES_CACHE = `modules-${CACHE_VERSION}`;
const API_CACHE = `api-${CACHE_VERSION}`; const API_CACHE = `api-${CACHE_VERSION}`;

View File

@ -39,7 +39,13 @@
// staged-upload payload with user_id_upload from SSO); GIS export from // staged-upload payload with user_id_upload from SSO); GIS export from
// Area/Circle Analysis popups (GeoJSON / SHP via shp-write / KML, with // Area/Circle Analysis popups (GeoJSON / SHP via shp-write / KML, with
// field-rename modal). New hashed bundle + shp-write chunk. // field-rename modal). New hashed bundle + shp-write chunk.
const CACHE_VERSION = 'v10'; // v11: Permit-iframe hardening (in-iframe auth-required card replacing the
// 302 redirect, X-Frame-Options strip at both .htaccess and PHP layers);
// import-flow UX refinements (parse spinner, per-feature client_uuid
// tagging, geometry-edit + delete persistence to the staging tables,
// sample values + Unicode-bold field names in the mapping dropdown).
// New hashed bundle + updated embed.php shell.
const CACHE_VERSION = 'v11';
const SHELL_CACHE = `shell-${CACHE_VERSION}`; const SHELL_CACHE = `shell-${CACHE_VERSION}`;
const MODULES_CACHE = `modules-${CACHE_VERSION}`; const MODULES_CACHE = `modules-${CACHE_VERSION}`;
const API_CACHE = `api-${CACHE_VERSION}`; const API_CACHE = `api-${CACHE_VERSION}`;