• 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
..
docs Loading commit data...
public Loading commit data...
src Loading commit data...
.gitignore Loading commit data...
biome.json Loading commit data...
components.json Loading commit data...
index.html Loading commit data...
package.json Loading commit data...
pnpm-lock.yaml Loading commit data...
tsconfig.json Loading commit data...
vite.config.mts Loading commit data...