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

refactor: asset caching via query param #192

Merged
merged 2 commits into from
May 16, 2022
Merged

refactor: asset caching via query param #192

merged 2 commits into from
May 16, 2022

Conversation

lucacasonato
Copy link
Member

This updates the asset caching to use a cache busting query string,
rather than a totally seperate path. This makes it safer to apply
caching automatically to things like <img> tags, as the path does not
change anymore.

cc @sylc

Ref #184

This updates the asset caching to use a cache busting query string,
rather than a totally seperate path. This makes it safer to apply
caching automatically to things like `<img>` tags, as the path does not
change anymore.
Copy link
Contributor

@sylc sylc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. LGTM.

src/runtime/utils.ts Show resolved Hide resolved
@lucacasonato lucacasonato enabled auto-merge (squash) May 16, 2022 17:36
@lucacasonato lucacasonato merged commit cf438a7 into main May 16, 2022
@lucacasonato lucacasonato deleted the qs_cache_bust branch May 16, 2022 17:39
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.

None yet

2 participants