Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Cdn .htaccess settings

pkra edited this page May 15, 2012 · 4 revisions

This document is now archival.

This document has been succeeded by Managing Rackspace Cloud Files & CDN

Currently, we use these access settings for our origin server directories.

# Define mime-types for fonts which aren't part of apache's config
AddType font/x-woff .woff
AddType font/opentype .otf
AddType font/ttf .ttf
# add gzip to all non-png resources
AddOutputFilter DEFLATE html xhtml css xml svg js eot otf ttf
# enable cross-site use of font-files
<FilesMatch "\.(svg|xml|ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
# Set a max-age of one day for caches
<IfModule mod_headers.c>
Header set Cache-Control "max-age=86400"
</IfModule>
Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /