1/25/2011 - 11:16 AM



   <!-- Add correct content-type for fonts -->
      <mimeMap fileExtension=".eot" mimeType="application/" />
      <mimeMap fileExtension=".ttf" mimeType="font/ttf" />
      <mimeMap fileExtension=".otf" mimeType="font/otf" />
      <mimeMap fileExtension=".woff" mimeType="font/x-woff" />
      <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />

   <!-- Compress compressible fonts -->
      <scheme name="deflate" dll="%Windir%\system32\inetsrv\gzip.dll" />
         <add mimeType="font/ttf" enabled="true" />
         <add mimeType="font/otf" enabled="true" />
         <add mimeType="image/svg+xml" enabled="true" />

   <!-- Add a far future Expires header for fonts -->
   <!-- (There doesn't appear to be a way to do this for individual types, or to set based on access time, so we're setting it to 1 year in the future for all static content) -->
      <clientCache httpExpires="Mon, 24 Jan 2012 00:00:00 GMT" cacheControlMode="UseExpires" />

# Add correct content-type for fonts 
types {
  application/ eot;
  font/ttf ttf;
  font/otf otf;
  font/x-woff woff;
  image/svg+xml svg;

# Compress compressible fonts
gzip on;
gzip_comp_level 9;
gzip_types font/ttf font/otf image/svg+xml;

# Add a far future Expires header for fonts
if ($request_uri ~* "\.(eot|ttf|otf|woff|svg)$") {
  expires max;
# Add correct content-type for fonts 
AddType application/ .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType font/x-woff .woff
AddType image/svg+xml .svg

# Compress compressible fonts
AddOutputFilterByType DEFLATE font/ttf font/otf image/svg+xml

# Add a far future Expires header for fonts
ExpiresByType application/ "access plus 1 year"
ExpiresByType font/ttf "access plus 1 year"
ExpiresByType font/otf "access plus 1 year"
ExpiresByType font/x-woff "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"