Skip to content

Commit

Permalink
Add info about cloudflare workers
Browse files Browse the repository at this point in the history
  • Loading branch information
helenb committed Jul 29, 2024
1 parent 3d3342b commit 607b4f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/custom-features/modes.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ The incident form is embedded in an iframe at https://torchbox.com/incident/. It
The `torchbox-mode` cookie therefore explicitly sets a `domain` value in order to be read by `incident-form.torchbox.com` where the form is hosted.

Note that there isn't any easy way to test the incident form's reading of the `torchbox-mode` cookie locally, as the domains won't match.

## Cloudflare workers

In order to avoid cloudflare caching an incorrect version of a page, we use some custom cloudflare workers to ensure that both versions of the page are cached, and the user's preference respected.

0 comments on commit 607b4f0

Please sign in to comment.