Files
fizzy/app/javascript/controllers
Rosa Gutierrez a949f1e3ae Clear offline cache when logging out
Adds a logout Stimulus controller that sends a message to the service
worker to clear all cached content when the user logs out. This ensures
that cached data from one user isn't accessible after logout.

The implementation:
- Adds logout_controller.js that posts { action: "clearCache" } to the
  service worker via postMessage
- Updates logout buttons to use the controller on form submission

Also fixes data-turbo placement: moved from button to form element where
it actually takes effect for disabling Turbo Drive form submissions.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-10 10:20:54 +01:00
..
2024-06-21 13:19:56 +01:00
2025-07-24 14:49:53 -05:00
2026-03-03 10:31:08 +01:00
2025-04-09 14:09:08 -05:00
2024-06-21 13:19:56 +01:00
2025-09-12 11:01:56 +02:00
2026-03-03 10:31:08 +01:00
2026-02-02 12:36:48 +01:00