A performance optimized MVC starter project
BundleTable.EnableOptimizations adds a query string hash to the end of CSS and JS files. This is triggered by compliation > debug in the web.config.
- http compression (gzip)
- correct mime types
- WebMarkupMin for minifying MVC views - see Controllers/HomeController.cs for an example of minifying HTML with a code attribute.
- Max Age HTTP caching headers
Bundles are set here so they are editible when running locally and debugging
Removed XML formatter from WebAPI so we only use JSON Minify JSON results when not debugging
Refers to Bootstrap SCSS in sass/_custom-bootstrap.scss. This allows you to only use the portions of Bootstrap that you need.
Creates a [CacheControl(MaxAge = 60)] attribute for use on MVC controllers