memos icon indicating copy to clipboard operation
memos copied to clipboard

The browser cache is not updated in time

Open ddddchende opened this issue 1 year ago • 2 comments

Describe the bug

After I edited the content, I clicked Save and then edited it again. My cache was not updated to the latest edited content, but the content before the edit. After I cleared my browser cache and cookies it updated correctly.

Steps to reproduce

  1. Edit the previous content
  2. Save
  3. Re-edit the same content. The browser caches the content before "1. Edit" locally.

The version of Memos you're using.

v0.22.4

Screenshots or additional context

No response

ddddchende avatar Aug 08 '24 02:08 ddddchende

What content are you creating? Wasnt able to replicate with memos or comments. Each time save was clicked the local storage record for the memo/comment was removed.

I did notice cancelling an edit does not clear the local storage record so this would create a scenario where if you edit, change content, cancel and edit again you will see the initial edit content rather than the original content

RoccoSmit avatar Aug 23 '24 19:08 RoccoSmit

PR for clearing local storage on cancel https://github.com/usememos/memos/pull/3826

RoccoSmit avatar Aug 23 '24 21:08 RoccoSmit