Cache busting in ASP.NET MVC
https://stefanolsen.com/posts/cache-busting-with-aspnet-mvc/
Redis cache, Sucuri cache - all these things can make latest js files deployed to not work.
Good idea to implement 'cache busting' -
@{
Layout = null;
var version = Atcc.Foundation.SitecoreExtensions.Helpers.ViewHelper.AssemblyVersionForFrontEnd("Atcc.Project.Common.Website");
}
Layout = null;
var version = Atcc.Foundation.SitecoreExtensions.Helpers.ViewHelper.AssemblyVersionForFrontEnd("Atcc.Project.Common.Website");
}
[11:09 AM] Dennis Weston
The js and css need to be cleared based on if things change with a query string
That way current instances continue to work and new traffic gets new files
Pending CDN standard rotation
No comments:
Post a Comment