tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject git commit: Contribute MIME type mappings for Bootstrap font types, mark as non-compressable
Date Mon, 04 Nov 2013 22:30:54 GMT
Updated Branches:
  refs/heads/master 77e2b157c -> 83847d005


Contribute MIME type mappings for Bootstrap font types, mark as non-compressable


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/83847d00
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/83847d00
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/83847d00

Branch: refs/heads/master
Commit: 83847d005f652538e96d18ac963c50eef84dbde4
Parents: 77e2b15
Author: Howard M. Lewis Ship <hlship@apache.org>
Authored: Mon Nov 4 14:30:49 2013 -0800
Committer: Howard M. Lewis Ship <hlship@apache.org>
Committed: Mon Nov 4 14:30:49 2013 -0800

----------------------------------------------------------------------
 .../main/java/org/apache/tapestry5/modules/AssetsModule.java | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/83847d00/tapestry-core/src/main/java/org/apache/tapestry5/modules/AssetsModule.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/modules/AssetsModule.java b/tapestry-core/src/main/java/org/apache/tapestry5/modules/AssetsModule.java
index 5772e28..86e5086 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/modules/AssetsModule.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/modules/AssetsModule.java
@@ -158,6 +158,8 @@ public class AssetsModule
      * <dd>application/x-shockwave-flash</dd>
      * <dt>woff</dt>
      * <dd>application/font-woff</dd>
+     * <dt>tff</dt> <dd>application/x-font-ttf</dd>
+     * <dt>eot</dt> <dd>application/vnd.ms-fontobject</dd>
      * </dl>
      */
     @Contribute(ContentTypeAnalyzer.class)
@@ -172,6 +174,8 @@ public class AssetsModule
         configuration.add("swf", "application/x-shockwave-flash");
         configuration.add("svg", "image/svg+xml");
         configuration.add("woff", "application/font-woff");
+        configuration.add("ttf", "application/x-font-ttf");
+        configuration.add("eot", "application/vnd.ms-fontobject");
     }
 
     /**
@@ -182,6 +186,8 @@ public class AssetsModule
      * <li>image/png</li>
      * <li>application/x-shockwave-flash</li>
      * <li>application/font-woff</li>
+     * <li>application/x-font-ttf</li>
+     * <li>application/vnd.ms-fontobject</li>
      * </ul>
      */
     @Contribute(CompressionAnalyzer.class)
@@ -192,6 +198,8 @@ public class AssetsModule
         configuration.add("image/png", false);
         configuration.add("application/x-shockwave-flash", false);
         configuration.add("application/font-woff", false);
+        configuration.add("application/x-font-ttf", false);
+        configuration.add("application/vnd.ms-fontobject", false);
     }
 
     @Marker(ContextProvider.class)


Mime
View raw message