Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f715e13599
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (29 sloc) 1.207 kb
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+?)\.(html|js|json|xml)$ handler.php?features=$1&format=$2 [NC,QSA]
<IfModule mod_expires.c>
ExpiresActive on
# Default for all files
ExpiresDefault "access plus 1 day"
ExpiresByType text/html "access plus 1 day"
# Data
ExpiresByType text/xml "access plus 1 day"
ExpiresByType application/xml "access plus 1 day"
ExpiresByType application/json "access plus 1 day"
# Media: images
ExpiresByType image/png "access plus 1 month"
# CSS and JavaScript
ExpiresByType text/css "access plus 1 day"
ExpiresByType application/javascript "access plus 1 day"
# ----------------------------------------------------------------------
# Cross-domain AJAX requests
# ----------------------------------------------------------------------
# Serve cross-domain Ajax requests, disabled by default.
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
Jump to Line
Something went wrong with that request. Please try again.