BrowserMatch MSIE ie Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie # Because X-UA-Compatible isn't sent to non-IE (to save header bytes), # We need to inform proxies that content changes based on UA Header append Vary User-Agent # Cache control is set only if mod_headers is enabled, so that's unncessary to declare # ---------------------------------------------------------------------- # Webfont access # ---------------------------------------------------------------------- # allow access from all domains for webfonts # alternatively you could only whitelist # your subdomains like "sub.domain.com" Header set Access-Control-Allow-Origin "*" # ---------------------------------------------------------------------- # Proper MIME type for all files # ---------------------------------------------------------------------- # audio AddType audio/ogg oga ogg # video AddType video/ogg ogv AddType video/mp4 mp4 AddType video/webm webm # Proper svg serving. Required for svg webfonts on iPad # twitter.com/FontSquirrel/status/14855840545 AddType image/svg+xml svg svgz AddEncoding gzip svgz # webfonts AddType application/vnd.ms-fontobject eot AddType font/truetype ttf AddType font/opentype otf AddType application/x-font-woff woff # assorted types AddType image/x-icon ico AddType image/webp webp AddType text/cache-manifest appcache manifest AddType text/x-component htc AddType application/x-chrome-extension crx AddType application/x-xpinstall xpi AddType application/octet-stream safariextz ## # ---------------------------------------------------------------------- ## # Expires headers (for better cache control) ## # ---------------------------------------------------------------------- ## ## # these are pretty far-future expires headers ## # they assume you control versioning with cachebusting query params like ## #