Cached setmode.js is retained across upgrades, breaking dark mode support temporarily #9608

Closed
opened 2025-12-29 21:19:39 +01:00 by adam · 3 comments
Owner

Originally created by @JohannesKreuzer on GitHub (May 7, 2024).

Originally assigned to: @jeremystretch on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.0.0

Python Version

3.11

Steps to Reproduce

enable dark mode on a page. then navigate to another page.

Expected Behavior

Dark mode stays enabled.

Observed Behavior

Dark mode is automatically disabled and page is shown in bright mode again

Originally created by @JohannesKreuzer on GitHub (May 7, 2024). Originally assigned to: @jeremystretch on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.0.0 ### Python Version 3.11 ### Steps to Reproduce enable dark mode on a page. then navigate to another page. ### Expected Behavior Dark mode stays enabled. ### Observed Behavior Dark mode is automatically disabled and page is shown in bright mode again
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:19:40 +01:00
adam closed this issue 2025-12-29 21:19:40 +01:00
Author
Owner

@JohannesKreuzer commented on GitHub (May 7, 2024):

A clearing of the browser cache resolved the issue.

Remaining issue is that the setmode.js is not postpended by the version as query param and so it is cached across netbox upgrades, creating the issue when setmode.js changes in upgrades of netbox.

@JohannesKreuzer commented on GitHub (May 7, 2024): A clearing of the browser cache resolved the issue. Remaining issue is that the setmode.js is not postpended by the version as query param and so it is cached across netbox upgrades, creating the issue when setmode.js changes in upgrades of netbox.
Author
Owner

@arthanson commented on GitHub (May 7, 2024):

@JohannesKreuzer can you please edit this bug report (title, reproduce steps) for the setmode.js issue as the current description / title is resolved.

@arthanson commented on GitHub (May 7, 2024): @JohannesKreuzer can you please edit this bug report (title, reproduce steps) for the setmode.js issue as the current description / title is resolved.
Author
Owner

@jeremystretch commented on GitHub (May 7, 2024):

@arthanson I just updated the title. Will knock this out in a minute.

@jeremystretch commented on GitHub (May 7, 2024): @arthanson I just updated the title. Will knock this out in a minute.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9608