Modifies asset URLs in generated pages to include a version number then strips these versions numbers off again on incomming requests. This allows the assets to be cached indefinately by the browser and updated on new versions of the website
This middleware will improve the performance of your web site by adding a version number to the URLs of static assets and instructing the browser to cache them indefinately.
Each time you release a new version of your web site you should increment the version number so that the browser sees them as new assets and fetches them from the server. Once the server has a particular version of an asset it will keep hold of it any not request it again, this improves the user experience and reduces load on your servers.
This middleware performs these actions:
builder.Register(ninject.Get<OwinFramework.Versioning.VersioningMiddleware>()) .As("Versioning") .ConfigureWith(config, "/owinFramework/middleware/staticFiles");
The configuration below is the configuration you will get by default if you do not provide a configuration for this middleware.