From 1262e971c41f57198b66b447e7b072cb85365483 Mon Sep 17 00:00:00 2001 From: Ayo Date: Fri, 21 Nov 2025 11:09:51 +0100 Subject: [PATCH] chore: update instructions on cache invalidation --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 80649e2..6d8bb83 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,8 @@ You can do this by adding a `.env` file with the following content (replace the HOST=123.456.789.00 ``` +There is a service worker (`src/sw.mjs`) that caches assets on client browsers. For cache invalidation, the version property in package.json is used. Increment the version via `npm version patch` (or `minor`, `major`) if there is a significant change in the website's assets. + If you want to run build before deploying, do `npm run build:deploy` ---