From 7e1de2f99bbc22609b8a466112a7ce009d62e3fb Mon Sep 17 00:00:00 2001 From: Nathan Schneider Date: Tue, 20 Oct 2026 22:11:41 -0600 Subject: [PATCH] =?UTF-8?q?sw.js:=20per-build=20stamp=20=E2=80=94=20every?= =?UTF-8?q?=20deploy=20changes=20the=20service=20worker=20bytes=20so=20bro?= =?UTF-8?q?wsers=20update=20the=20worker=20and=20re-precache=20current=20c?= =?UTF-8?q?ontent=20(manifest=20identity,=20index.html)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a36c4b2..a30ffc0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,7 +49,8 @@ RUN python3 /app/code/patch_ui_strings.py COPY patch_index.py /app/code/patch_index.py RUN python3 /app/code/patch_index.py && \ sed -i 's|assets/logo.svg|assets/logo.svg?v=3|g' /app/code/librechat/client/dist/assets/index.*.js && \ - rm -f /app/code/librechat/client/dist/assets/index.*.js.gz /app/code/librechat/client/dist/assets/index.*.js.br + rm -f /app/code/librechat/client/dist/assets/index.*.js.gz /app/code/librechat/client/dist/assets/index.*.js.br && \ + echo "// coop-build-$(date +%s)" >> /app/code/librechat/client/dist/sw.js # PWA chrome colors: LibreChat ships a teal theme_color (#009688) in the web # manifest (the bright green bar Firefox PWAs draw across the top) and black