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

Closed
opened 2026-05-07 00:27:18 +02:00 by BreizhHardware · 1 comment

Originally created by @battlewolf9527 on GitHub (Apr 18, 2024).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1090

🐞 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.

💻 ntfy server, web app

💡 Screenshots and/or logs

🔮 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.

Originally created by @battlewolf9527 on GitHub (Apr 18, 2024). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1090 :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. <!-- A clear and concise description of the problem. --> :computer: ntfy server, web app <!-- ntfy server, Android app, iOS app, web app --> :bulb: **Screenshots and/or logs** <!-- If applicable, add screenshots or share logs help explain your problem. To get logs from the ... - ntfy server: Enable "log-level: trace" in your server.yml file - Android app: Go to "Settings" -> "Record logs", then eventually "Copy/upload logs" - web app: Press "F12" and find the "Console" window --> :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. <!-- Add any other context about the problem here. -->
BreizhHardware 2026-05-07 00:27:18 +02:00
  • closed this issue
  • added the
    🪲 bug
    label
Author
Owner

@wunter8 commented on GitHub (Jun 3, 2024):

Fixed by #1098

<!-- gh-comment-id:2145757219 --> @wunter8 commented on GitHub (Jun 3, 2024): Fixed by #1098
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#765
No description provided.