Skip to content

No cache when edditing a memo when using PWA #5643

@iioel

Description

@iioel

Pre-submission Checklist

  • I have searched the existing issues and this bug has not been reported yet
  • I have tested this issue on the demo site or the latest version

Where did you encounter this bug?

Latest stable version (self-hosted)

Memos Version

v0.26.1

Bug Description

[on mobile, PWA with chrome]
It has been multiple times that I lost the content that I add to my memos by editing it and then multitasking to another app to copy something and then coming back to memos and I find a blank page (no memos). I need to refresh to see my memos and then while editing back the same one, my unsaved changes have been lost.

This is really annoying. I don't want to same my memo each time I multitask between different apps.

I don't know if my explanations are clear. I can provide a video clip to show you what is going wrong.

Steps to Reproduce

  1. Install memos as a PWA on android with chrome
  2. Login and create a new memo. Save it.
  3. Edit this newly created memo by clicking on the 3 dots then Edit
  4. Add new things to the memo
  5. Multitask to another application without saving the modifications then come back to memos
  6. You should see an empty screen (no memos) (it does not always happen, maybe after few minutes editing the same memo)
  7. Refresh the page to have the memos back
  8. Edit the previously edited memos
  9. Your unsaved changes should not be present...

Expected Behavior

I expected either a non-black screen were I can continue to edit my memo OR the unsaved content of my edit to by cached to be able to persist after a refresh.

Screenshots & Additional Context

  • OS: Android 16
  • Phone: Pixel 8
  • Browser: Chrome (memos installed as PWA)
  • Authentication: SSO - PocketID
  • Deployment: docker-compose
  • Network: is behind a nginx reverse-proxy

docker-compose.yml

services:
  memos:
    image: docker.io/neosmemo/memos:0.26.1
    container_name: memos
    restart: always
    depends_on:
      - db
    ports:
      - 5230:5230
    environment:
      - MEMOS_DRIVER=postgres
      - MEMOS_DSN=user=xxx password=xxx dbname=memosdb host=db sslmode=disable

  db:
    image: docker.io/postgres:18.2
    container_name: memos_db
    restart: unless-stopped
    networks:
      - memos
    volumes:
      - memos-db-data:/var/lib/postgresql/
    environment:
      POSTGRES_USER: xxx
      POSTGRES_PASSWORD: xxx
      POSTGRES_DB: memosdb

volumes:
  memos-db-data:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions