• 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
.github Loading commit data...
cmd/memos Loading commit data...
internal Loading commit data...
plugin Loading commit data...
proto Loading commit data...
scripts Loading commit data...
server Loading commit data...
store Loading commit data...
web Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
.golangci.yaml Loading commit data...
AGENTS.md Loading commit data...
CODEOWNERS Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
SECURITY.md Loading commit data...
go.mod Loading commit data...
go.sum Loading commit data...