1
0
mirror of https://github.com/kremalicious/blog.git synced 2025-02-14 21:10:25 +01:00

Apache Server Configs v2.11.0

This commit is contained in:
Matthias Kretschmann 2014-10-28 11:06:45 +01:00
parent 952820b6f5
commit 6ab9ee6e6e

View File

@ -1,6 +1,6 @@
# BEGIN HTML5 Boilerplate # BEGIN HTML5 Boilerplate
# Apache Server Configs v2.10.0 | MIT License # Apache Server Configs v2.11.0 | MIT License
# https://github.com/h5bp/server-configs-apache # https://github.com/h5bp/server-configs-apache
# (!) Using `.htaccess` files slows down Apache, therefore, if you have # (!) Using `.htaccess` files slows down Apache, therefore, if you have
@ -162,16 +162,21 @@ Options -MultiViews
<IfModule mod_mime.c> <IfModule mod_mime.c>
# Data interchange # Data interchange
AddType application/json json map topojson AddType application/json json map topojson
AddType application/ld+json jsonld AddType application/ld+json jsonld
AddType application/vnd.geo+json geojson AddType application/vnd.geo+json geojson
AddType application/xml atom rdf rss xml AddType application/xml atom rdf rss xml
# JavaScript # JavaScript
# Normalize to standard type. # Normalize to standard type.
# https://tools.ietf.org/html/rfc4329#section-7.2 # https://tools.ietf.org/html/rfc4329#section-7.2
AddType application/javascript js AddType application/javascript js
# Manifest files # Manifest files
# If you are providing a web application manifest file (see # If you are providing a web application manifest file (see
@ -208,7 +213,9 @@ Options -MultiViews
AddType application/x-web-app-manifest+json webapp AddType application/x-web-app-manifest+json webapp
AddType text/cache-manifest appcache manifest AddType text/cache-manifest appcache manifest
# Media files # Media files
AddType audio/mp4 f4a f4b m4a AddType audio/mp4 f4a f4b m4a
AddType audio/ogg oga ogg opus AddType audio/ogg oga ogg opus
AddType image/bmp bmp AddType image/bmp bmp
@ -220,7 +227,15 @@ Options -MultiViews
AddType video/x-flv flv AddType video/x-flv flv
AddType image/svg+xml svg svgz AddType image/svg+xml svg svgz
# Serving `.ico` image files with a different media type
# prevents Internet Explorer from displaying then as images:
# https://github.com/h5bp/html5-boilerplate/commit/37b5fec090d00f38de64b591bcddcb205aadf8ee
AddType image/x-icon cur ico
# Web fonts # Web fonts
AddType application/font-woff woff AddType application/font-woff woff
AddType application/font-woff2 woff2 AddType application/font-woff2 woff2
AddType application/vnd.ms-fontobject eot AddType application/vnd.ms-fontobject eot
@ -236,7 +251,9 @@ Options -MultiViews
AddType application/x-font-ttf ttc ttf AddType application/x-font-ttf ttc ttf
AddType font/opentype otf AddType font/opentype otf
# Other # Other
AddType application/octet-stream safariextz AddType application/octet-stream safariextz
AddType application/x-bb-appworld bbaw AddType application/x-bb-appworld bbaw
AddType application/x-chrome-extension crx AddType application/x-chrome-extension crx
@ -706,9 +723,11 @@ AddDefaultCharset utf-8
"application/x-web-app-manifest+json" \ "application/x-web-app-manifest+json" \
"application/xhtml+xml" \ "application/xhtml+xml" \
"application/xml" \ "application/xml" \
"font/eot" \
"font/opentype" \ "font/opentype" \
"image/bmp" \ "image/bmp" \
"image/svg+xml" \ "image/svg+xml" \
"image/vnd.microsoft.icon" \
"image/x-icon" \ "image/x-icon" \
"text/cache-manifest" \ "text/cache-manifest" \
"text/css" \ "text/css" \
@ -719,7 +738,9 @@ AddDefaultCharset utf-8
"text/vnd.rim.location.xloc" \ "text/vnd.rim.location.xloc" \
"text/vtt" \ "text/vtt" \
"text/x-component" \ "text/x-component" \
"text/x-cross-domain-policy" \
"text/xml" "text/xml"
</IfModule> </IfModule>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -814,6 +835,7 @@ FileETag None
ExpiresByType text/xml "access plus 0 seconds" ExpiresByType text/xml "access plus 0 seconds"
# Favicon (cannot be renamed!) and cursor images # Favicon (cannot be renamed!) and cursor images
ExpiresByType image/vnd.microsoft.icon "access plus 1 week"
ExpiresByType image/x-icon "access plus 1 week" ExpiresByType image/x-icon "access plus 1 week"
# HTML # HTML
@ -836,17 +858,33 @@ FileETag None
ExpiresByType image/gif "access plus 1 month" ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month" ExpiresByType image/png "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month" ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/ogg "access plus 1 month" ExpiresByType video/ogg "access plus 1 month"
ExpiresByType video/webm "access plus 1 month" ExpiresByType video/webm "access plus 1 month"
# Web fonts # Web fonts
ExpiresByType application/font-woff "access plus 1 month"
ExpiresByType application/font-woff2 "access plus 1 month" # Embedded OpenType (EOT)
ExpiresByType application/vnd.ms-fontobject "access plus 1 month" ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
ExpiresByType application/x-font-ttf "access plus 1 month" ExpiresByType font/eot "access plus 1 month"
# OpenType
ExpiresByType font/opentype "access plus 1 month" ExpiresByType font/opentype "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
# TrueType
ExpiresByType application/x-font-ttf "access plus 1 month"
# Web Open Font Format (WOFF) 1.0
ExpiresByType application/font-woff "access plus 1 month"
ExpiresByType application/x-font-woff "access plus 1 month"
ExpiresByType font/woff "access plus 1 month"
# Web Open Font Format (WOFF) 2.0
ExpiresByType application/font-woff2 "access plus 1 month"
# Other
ExpiresByType text/x-cross-domain-policy "access plus 1 week"
</IfModule> </IfModule>