[Question] - Cache Busting
See original GitHub issueASP.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:
- Created 8 years ago
- Comments:14 (11 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That is Umbraco’s implementation and usage of Smidge.
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" },