• Steven's avatar
    fix: prevent browser cache from serving stale memo data (#5470) · 61dbca8d
    Steven authored
    This fixes a critical data loss issue where users editing the same memo
    on multiple devices would overwrite each other's changes due to aggressive
    browser caching, particularly in Chromium-based browsers and PWAs.
    
    Changes:
    - Backend: Add Cache-Control headers to all API responses to prevent
      browser HTTP caching
    - Frontend: Force fresh fetch from server when opening memo editor by
      invalidating React Query cache
    - Frontend: Reduce memo query staleTime from 60s to 10s for better
      collaborative editing support
    
    Fixes #5470
    61dbca8d
Name
Last commit
Last update
..
components Loading commit data...
contexts Loading commit data...
helpers Loading commit data...
hooks Loading commit data...
layouts Loading commit data...
lib Loading commit data...
locales Loading commit data...
pages Loading commit data...
router Loading commit data...
themes Loading commit data...
types Loading commit data...
utils Loading commit data...
App.tsx Loading commit data...
auth-state.ts Loading commit data...
connect.ts Loading commit data...
i18n.ts Loading commit data...
index.css Loading commit data...
instance-config.ts Loading commit data...
main.tsx Loading commit data...