[openstreetmap/openstreetmap-website] Warn when leaving the page after having added but not sent information (Issue #6584)

dieterdreist notifications at github.com
Wed Dec 3 16:26:07 UTC 2025


dieterdreist left a comment (openstreetmap/openstreetmap-website#6584)

not directly, but it could indirectly prevent the page from qualifying for the back/forward cache (bfcache) — and bfcache is what restores filled form fields when you hit Back.

Browsers treat some caching headers as “activity” that makes a page unsafe to store in memory.

Example
cache-control: no-store → bfcache disabled
cache-control: no-cache → often disables bfcache
cache-control: must-revalidate + max-age=0 → can disable bfcache depending on browser

This does not prevent form saving directly — but it prevents the entire page state from being preserved. When the browser cannot put the page in bfcache, it must reload the document, so no form values survive.

this is a shortened version of an ai reply.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6584#issuecomment-3607706111
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/6584/3607706111 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251203/58d5eb01/attachment-0001.htm>


More information about the rails-dev mailing list