9

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 1

16

Bundling and Minification

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.

1
  • Search for "Bundle Caching" in that page for the section that @webdeveloper was talking about.
    – Rap
    Commented Feb 6, 2017 at 20:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.