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

Add hacstag to lovelace resource URL's #479

Merged
merged 2 commits into from
Jun 12, 2021
Merged

Add hacstag to lovelace resource URL's #479

merged 2 commits into from
Jun 12, 2021

Conversation

ludeeus
Copy link
Member

@ludeeus ludeeus commented Jun 12, 2021

When a user are in storage mode, HACS injects the resource URL.
Even if /hacsfiles are served without cache, with the resent changes in chrome serviceworkers, they would still need to hard reload the page (often multiple times) to use the new "version" of a card/strategy/other for lovelace.

This changes the format for the resource url from /hacsfiles/<resource-name>/<filename>.js to /hacsfiles/<resource-name>/<filename>.js?hacstag=<repoid><numberified-version>

CC @thomasloven

@ludeeus ludeeus merged commit 2a22679 into main Jun 12, 2021
@ludeeus ludeeus deleted the hacs-tag branch June 12, 2021 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant