question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] - Cache Busting

See original GitHub issue

ASP.NET 5 has a handy way of cache busting via the asp-append-version tag:

<link rel="stylesheet" href="~/Css/somecssfile.min.css" asp-append-version="true"/>

This appends some file version hash to the url - which will mean the url changes when the file changes:

<link rel="stylesheet" href="/css/somecssfile.min.css?v=UdxKHVNJA5vb1EsG9O9uURFDfEE3j1E3DgwL6NiDGMc" />

How does cache busting work with Smidge? Can we just continue to use the asp-append-version tag helper?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
Shazwazzacommented, May 3, 2023

That is Umbraco’s implementation and usage of Smidge.

0reactions
John-Blaircommented, Apr 29, 2023

FYI I found that if I change the Version number in the “RuntimeMinification” setting then it appears in the url. I find this confusing that there is 2 locations for version now - the other under the “smidge” section in the configuration. Should only be 1 place.

"RuntimeMinification": { "UseInMemoryCache": false, "CacheBuster": "Version", "Version": "33" },

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cache Busting Explained
Cache busting is the process of uploading a new file to replace an existing file that is already cached. This is useful because...
Read more >
javascript - Cache busting via params
As others have said, cache busting with a query param is usually considered a Bad Idea (tm), and has been for a long...
Read more >
What is Cache Busting?
Cache busting is a technique so that browsers can have long caches on files while having them reload files when they change.
Read more >
Cache Busting for A More Performant, Usable Web
Cache busting is a way for updates to still happen when using web caching. If a file is “stored forever” on a visitor's...
Read more >
Cache Busting In React: A Tutorial
So, cache busting is basically a technique to tell the browser that the data stored in the cache memory has been changed and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found