Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: instruct client browser to reload JS #860

Merged
merged 2 commits into from
Sep 26, 2023

Conversation

Flix6x
Copy link
Contributor

@Flix6x Flix6x commented Sep 26, 2023

Description

Implement cache-busting to avoid the need to hard refresh the browser.

Look & Feel

Without this, the asset/sensor page will not load when a new function needs to be loaded from a local JS file. I ran into this when the convertToCSV function was introduced as part of the js/data-utils.js file. The browser caches these files, so we need to tell the browser to reload it. A common technique for this is cache-busting. In this PR I'm using the FlexMeasures version, so each new release (incl. local dev versions) leads to reloading the (locally imported) JS files.

…owser

Signed-off-by: F.N. Claessen <felix@seita.nl>
@Flix6x Flix6x added bug Something isn't working UI labels Sep 26, 2023
@Flix6x Flix6x added this to the 0.16.0 milestone Sep 26, 2023
@Flix6x Flix6x self-assigned this Sep 26, 2023
Signed-off-by: F.N. Claessen <felix@seita.nl>
@Flix6x Flix6x merged commit 091bcce into main Sep 26, 2023
3 checks passed
@Flix6x Flix6x deleted the fix/instruct_client_browser_to_reload_js branch September 26, 2023 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants