I'm using Asp.Net MVC4 bundling on my website. But are there an way to do any version control, so then i release an new version i can change the version number and force an refresh in the client browser?
1 Answer
v=r0sLDicvP58AIXN_mc3QdyVvVj5euZNzdsa2N1PKvb81
The query string v has a value token that is a unique identifier used for caching. As long as the bundle doesn't change, the ASP.NET application will request the bundle using this token. If any file in the bundle changes, the ASP.NET optimization framework will generate a new token, guaranteeing that browser requests for the bundle will get the latest bundle.
-
Search for "Bundle Caching" in that page for the section that @webdeveloper was talking about.– RapCommented Feb 6, 2017 at 20:23