Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

bug 799155 - smarter font access and caching controls #671

Merged
merged 1 commit into from Oct 31, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions media/fonts/.htaccess
@@ -1,10 +1,10 @@
# block hotlinking to .woff and .eof files
RewriteCond "%{HTTP_REFERER}" "!https?://.*mozilla\.(com|org)/.*$"
RewriteRule \.(woff|eot)$ - [F,NC,L]
RewriteRule \.(woff|eot)$ - [F,NC,L,E=!CORS]

<FilesMatch "\.(ttf|woff|eot)$">
Header append vary "Referer"
Header append vary "Origin"
ExpiresActive On
ExpiresDefault "access plus 2 weeks"
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Origin "*" env=CORS
</FilesMatch>