diff --git a/middleman-core/lib/middleman-core/cli/build.rb b/middleman-core/lib/middleman-core/cli/build.rb
index 91a8c97e..0fa8d646 100644
--- a/middleman-core/lib/middleman-core/cli/build.rb
+++ b/middleman-core/lib/middleman-core/cli/build.rb
@@ -178,7 +178,7 @@ module Middleman::Cli
# @return [void]
def execute!
# Sort order, images, fonts, js/css and finally everything else.
- sort_order = %w(.png .jpeg .jpg .gif .bmp .svg .svgz .ico .webp .woff .otf .ttf .eot .js .css)
+ sort_order = %w(.png .jpeg .jpg .gif .bmp .svg .svgz .ico .webp .woff .woff2 .otf .ttf .eot .js .css)
# Pre-request CSS to give Compass a chance to build sprites
logger.debug '== Prerendering CSS'
diff --git a/middleman-core/lib/middleman-core/templates/html5/source/.htaccess b/middleman-core/lib/middleman-core/templates/html5/source/.htaccess
index ee747dfc..056f476d 100755
--- a/middleman-core/lib/middleman-core/templates/html5/source/.htaccess
+++ b/middleman-core/lib/middleman-core/templates/html5/source/.htaccess
@@ -21,7 +21,7 @@
Header set X-UA-Compatible "IE=Edge,chrome=1"
# mod_headers can't match by content-type, but we don't want to send this header on *everything*...
-
+
Header unset X-UA-Compatible
@@ -70,7 +70,7 @@
# subdomains like "subdomain.example.com".
-
+
Header set Access-Control-Allow-Origin "*"
@@ -107,6 +107,7 @@ AddType application/vnd.ms-fontobject eot
AddType application/x-font-ttf ttf ttc
AddType font/opentype otf
AddType application/x-font-woff woff
+AddType application/font-woff2 woff2
# Assorted types
AddType image/x-icon ico
@@ -238,6 +239,7 @@ AddType text/vtt vtt
ExpiresByType application/x-font-ttf "access plus 1 month"
ExpiresByType font/opentype "access plus 1 month"
ExpiresByType application/x-font-woff "access plus 1 month"
+ ExpiresByType application/font-woff2 "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
diff --git a/middleman-core/lib/middleman-more/extensions/asset_hash.rb b/middleman-core/lib/middleman-more/extensions/asset_hash.rb
index 2384eacb..7f273820 100644
--- a/middleman-core/lib/middleman-more/extensions/asset_hash.rb
+++ b/middleman-core/lib/middleman-more/extensions/asset_hash.rb
@@ -1,7 +1,7 @@
require 'middleman-core/util'
class Middleman::Extensions::AssetHash < ::Middleman::Extension
- option :exts, %w(.jpg .jpeg .png .gif .webp .js .css .otf .woff .eot .ttf .svg .svgz), 'List of extensions that get asset hashes appended to them.'
+ option :exts, %w(.jpg .jpeg .png .gif .webp .js .css .otf .woff .woff2 .eot .ttf .svg .svgz), 'List of extensions that get asset hashes appended to them.'
option :ignore, [], 'Patterns to avoid adding asset hashes to'
def initialize(app, options_hash={}, &block)