jquery-mobile/.htaccess

23 lines
598 B
ApacheConf

# some servers don't handle x-httpd-php by default, so add a handler
# AddHandler x-httpd-php .php .htm .html
<Files index.html>
ForceType application/x-httpd-php
</Files>
# the rewrite engine requires the ability to follow sym links
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^css/all combine.php?type=css
RewriteRule ^js/all combine.php?type=javascript
# Turn on Expires and set default to 0
ExpiresActive On
ExpiresDefault "access"
# cache text, css, and javascript files for one week
<FilesMatch ".(html|png|jpg|gif|js|css)$">
Header set Cache-Control "max-age=1"
</FilesMatch>