Mealie is a self hosted recipe manager and meal planner with a RestAPI backend and a reactive frontend application built in Vue for a pleasant user experience for the whole family. Easily add recipes into your database by providing the url and mealie will automatically import the relevant data or add a family recipe with the UI editor
When accessing the Shopping list on a Android device (in my case Xiaomi 13t) and then switch to offline mode (turn off Wifi and mobile data), it doesn't recognize it properly. The offline message is only displayed for an short time after a request was initiated. It resets directly to the previous value before the change. I can reproduce it on Firefox and Chrome for Android.
Looks like the service worker caches the requests. In offline mode the requests still return 200 OK (from service worker). Screenshot from Network tab:
Zipped HAR file (you can extract it and then import the HAR file in the network tab of Chrome):
demo.mealie.io.zip
First Check
What is the issue you are experiencing?
When accessing the Shopping list on a Android device (in my case Xiaomi 13t) and then switch to offline mode (turn off Wifi and mobile data), it doesn't recognize it properly. The offline message is only displayed for an short time after a request was initiated. It resets directly to the previous value before the change. I can reproduce it on Firefox and Chrome for Android.
Screen recording:
https://github.com/mealie-recipes/mealie/assets/23395732/5b0c2def-3bd9-46e8-b2ba-a8efef3828c4
I can not reproduce it when using the desktop version (Linux). If I set the throttling to "Offline", then it all works fine.
Steps to Reproduce
Please provide relevant logs
Console log: demo.mealie.io-1720262329786.log
Looks like the service worker caches the requests. In offline mode the requests still return 200 OK (from service worker). Screenshot from Network tab:
Zipped HAR file (you can extract it and then import the HAR file in the network tab of Chrome): demo.mealie.io.zip
Might be related to https://github.com/mealie-recipes/mealie/issues/3842.
Mealie Version
v1.10.2, can also be reproduced with the demo version.
Deployment
Docker (Linux)
Additional Deployment Details
No response