chore: update instructions on cache invalidation

This commit is contained in:
Ayo Ayco 2025-11-21 11:09:51 +01:00
parent e097c27286
commit 1262e971c4

View file

@ -40,6 +40,8 @@ You can do this by adding a `.env` file with the following content (replace the
HOST=123.456.789.00 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` If you want to run build before deploying, do `npm run build:deploy`
--- ---