Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WOFF mime-type missing in Gzip section of .htaccess #1135

Closed
ms-studio opened this issue Jul 4, 2012 · 1 comment

Comments

@ms-studio
Copy link

commented Jul 4, 2012

The WOFF mime-type for webfonts is declared in the .htaccess like this:

AddType application/x-font-woff woff

However it's not showing up in the Gzip compression rules: Gzip compression is applied to EOT (vnd.ms-fontobject), TTF (x-font-ttf) and OTF (font/opentype), but not to WOFF (x-font-woff).

Has WOFF been ommitted by purpose for some technical reason, or is it simply missing?

@mathiasbynens

This comment has been minimized.

Copy link
Member

commented Jul 4, 2012

WOFF is already compressed, so it doesn’t need to be gzipped by the server. See http://www.phpied.com/font-face-gzipping-take-ii/.

Thanks for keeping an eye out, though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.