.htaccess
742 Bytes
# ------------------------------------------------------------------------------
# | Cross-domain AJAX requests |
# ------------------------------------------------------------------------------
# Enable cross-origin AJAX requests.
# http://code.google.com/p/html5security/wiki/CrossOriginRequestSecurity
# http://enable-cors.org/
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
RewriteEngine On
# Prevents Flash files from caching
RewriteCond %{REQUEST_URI} .swf$
RewriteRule ^(.+)$ /cache_proxy.php?file=%{REQUEST_URI} [L]
# Prevents XML files from caching
RewriteCond %{REQUEST_URI} .xml$
RewriteRule ^(.+)$ /cache_proxy.php?file=%{REQUEST_URI} [L]