|
|
On the development server `devel.mathjax.org` (and also on the old CDN origin `dist.mathjax.org`) we use the following .htaccess file.
|
|
|
|
|
|
> These settings are appropriate for hosting MathJax on a CDN (with an apache server as origin).
|
|
|
|
|
|
```
|
|
|
# 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>
|
|
|
``` |
|
|
\ No newline at end of file |