Skip to content

Commit e7c8bf2

Browse files
committed
docs(readme): update instructions for purging R2 cache for integrity checks
1 parent cba1f20 commit e7c8bf2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,6 @@ for f in app/static/*; do echo "$(basename $f): sha384-$(openssl dgst -sha384 -b
141141
```
142142

143143
> [!IMPORTANT]
144-
> If you upload modified static files to your dev R2 bucket without updating the `integrity` attributes in the HTML templates, the browser will block those resources from loading. After updating the `integrity` attributes in the templates, you must rebuild the container with `docker compose up -d --build` for the changes to take effect.
144+
> If you upload modified static files to your dev R2 bucket without updating the `integrity` attributes in the HTML templates, the browser will block those resources from loading. After updating the `integrity` attributes in the templates, you must rebuild the container with `docker compose up -d --build` for the changes to take effect. In production, you must also purge the Cloudflare cache for any updated files, otherwise the CDN will continue serving the old version. This can be done in the Cloudflare dashboard under Caching > Configuration > Custom Purge, entering the full URL of each updated file.
145145
146146
## Developed by [Jack](https://jacksec.engineer)

0 commit comments

Comments
 (0)