Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix(pwa): cache the MES manifest icons offline [preview]

naveenkash6976f33043a9
diff --git a/apps/mes/public/service-worker.js b/apps/mes/public/service-worker.js
index 78a8555497..10d6ebbd0c 100644
--- a/apps/mes/public/service-worker.js
+++ b/apps/mes/public/service-worker.js
@@ -60,7 +60,7 @@ function isHashedAsset(url) {
function isPublicFile(url) {
return (
url.pathname.startsWith("/icons/") ||
- /^\/(carbon-[\w-]+|apple-touch-icon)\.(png|svg)$/.test(url.pathname) ||
+ /^\/(carbon-[\w-]+|apple-touch-icon|icon(-maskable)?-\d+)\.(png|svg)$/.test(url.pathname) ||
url.pathname === "/site.webmanifest"
);
}