X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=htdocs%2F.htaccess.in;h=af51870920d67b567860f125f4931d10a7f70855;hb=c76545c351fae4e2298624ff9ee5bf854dc5a5b6;hp=8d2c3bf0b4d5de00665884a069f0944de7c14279;hpb=a14159bffdc1ea08c97e6634dc1480619bdc478a;p=platal.git diff --git a/htdocs/.htaccess.in b/htdocs/.htaccess.in index 8d2c3bf..af51870 100644 --- a/htdocs/.htaccess.in +++ b/htdocs/.htaccess.in @@ -2,7 +2,17 @@ RewriteEngine on RewriteBase @REWRITE_BASE@ -# Rewrite URLs of the form 'index.php?q=x': +# Rewrites URLs of the form 'index.php?q=x'. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ ?n=$1 [L,QSA] + +# Caches the immutable resources for seven days. Generated files (images and JS +# served by PHP) are not affected. +ExpiresActive On +ExpiresByType application/javascript "access plus 7 days" +ExpiresByType application/x-javascript "access plus 7 days" +ExpiresByType image/gif "access plus 7 days" +ExpiresByType image/jpeg "access plus 7 days" +ExpiresByType image/png "access plus 7 days" +ExpiresByType text/css "access plus 7 days"