Smidge cache buster on v14
# help-with-umbraco
b
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
@User May I suggest “friends” instead of "guys"? We use gender inclusive language in this Discord. 😀
m
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
@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
Not tried it myself, but if it's your front end then following Smidges docs should work
b
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() );
9 Views