Guys, I am upgrading Umbraco 13 to 14. Site used Minifiaction settings Smidge and Cache buster on Production server to change URL of new deployed minified files. Is this still a thing or should we do our own implementation of busting a cache for these kind of files?
p
ProBot ✨
09/01/2024, 5:45 PM
@User May I suggest “friends” instead of "guys"? We use gender inclusive language in this Discord. 😀
m
Matt Wise
09/01/2024, 5:51 PM
Hi, iirc they removed the dependency as the new backoffice doesnt use it. So you can just add teh nuget reference back to your project and continue as normal
b
Blago Culjak
09/01/2024, 6:09 PM
@Matt Wise did you tried that yourself? I tried, but there was error in code, so I set it up like in official code.
m
Matt Wise
09/01/2024, 6:18 PM
Not tried it myself, but if it's your front end then following Smidges docs should work
b
Blago Culjak
09/01/2024, 7:27 PM
I have found it, need to define it while making bundles.
bundles.CreateJs("test-bundle-3", "~/Js/Bundle3")
.WithEnvironmentOptions(BundleEnvironmentOptions.Create()
.ForDebug(builder => builder
.EnableCompositeProcessing()
.EnableFileWatcher()
.SetCacheBusterType()
.CacheControlOptions(enableEtag: false, cacheControlMaxAge: 0))
.Build()
);