Skip to content

dirq/PerformAnt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4da36ab · Nov 16, 2015

History

3 Commits
Nov 16, 2015
Nov 16, 2015
Nov 16, 2015
Nov 16, 2015
Nov 16, 2015
Nov 16, 2015

Repository files navigation

PerformAnt

A performance optimized MVC starter project

Global.asax

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.

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

Views/Shared/_Layout.cshtml

Bundles are set here so they are editible when running locally and debugging

App_Start/WebApiConfig.cs

Removed XML formatter from WebAPI so we only use JSON Minify JSON results when not debugging

Content/site.scss

Refers to Bootstrap SCSS in sass/_custom-bootstrap.scss. This allows you to only use the portions of Bootstrap that you need.

Controllers/Shared/CacheControlAttribute.cs

Creates a [CacheControl(MaxAge = 60)] attribute for use on MVC controllers

About

A performance optimized MVC starter project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published