binwiederhier / ntfy

Send push notifications to your phone or desktop using PUT/POST
https://ntfy.sh
Apache License 2.0
18.58k stars 731 forks source link

It seems that the HTTP header Cache-Control: no-cache should be added to the request for config.js. #1090

Open battlewolf9527 opened 7 months ago

battlewolf9527 commented 7 months ago

:lady_beetle: I found that after making certain modifications to the already deployed ntfy, (for example, changing enable-login from false to true) when reloading the page, the enable_login in the loaded config.js remains false.

:computer: ntfy server, web app

:bulb: Screenshots and/or logs

:crystal_ball: Although I restarted ntfy after making changes, the browser apparently did not attempt to reload config.js and instead chose to fetch it from the cache, causing config.js to not reflect the changes on the server.

wunter8 commented 5 months ago

Fixed by #1098