|
1 |
| -<IfModule mod_expires.c> |
2 |
| - <FilesMatch "\.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt|ico)$"> |
3 |
| - ExpiresActive On |
4 |
| - ExpiresDefault "access plus 10 years" |
5 |
| - </FilesMatch> |
| 1 | +# MIDAS Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. |
| 2 | + |
| 3 | +<IfModule expires_module> |
| 4 | + <FilesMatch "\.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt|ico)$"> |
| 5 | + ExpiresActive On |
| 6 | + ExpiresDefault "access plus 10 years" |
| 7 | + </FilesMatch> |
6 | 8 | </IfModule>
|
7 |
| -<IfModule mod_rewrite.c> |
8 |
| - RewriteEngine On |
9 |
| - |
10 |
| - RewriteCond %{REQUEST_FILENAME} !-f |
11 |
| - RewriteCond %{REQUEST_FILENAME} !-d |
12 |
| - RewriteRule ^(.*\.(js|css))$ smartoptimizer/?$1 |
13 |
| - |
14 |
| - <IfModule mod_expires.c> |
15 |
| - RewriteCond %{REQUEST_FILENAME} -f |
16 |
| - RewriteRule ^(.*\.(js|css|html?|xml|txt))$ smartoptimizer/?$1 |
17 |
| - </IfModule> |
18 | 9 |
|
19 |
| - <IfModule !mod_expires.c> |
20 |
| - RewriteCond %{REQUEST_FILENAME} -f |
21 |
| - RewriteRule ^(.*\.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt|ico))$ smartoptimizer/?$1 |
22 |
| - </IfModule> |
| 10 | +<IfModule rewrite_module> |
| 11 | + RewriteEngine On |
| 12 | + RewriteCond %{REQUEST_FILENAME} !-f |
| 13 | + RewriteCond %{REQUEST_FILENAME} !-d |
| 14 | + RewriteRule ^(.*\.(js|css))$ smartoptimizer/?$1 |
| 15 | + |
| 16 | + <IfModule expires_module> |
| 17 | + RewriteCond %{REQUEST_FILENAME} -f |
| 18 | + RewriteRule ^(.*\.(js|css|html?|xml|txt))$ smartoptimizer/?$1 |
| 19 | + </IfModule> |
| 20 | + |
| 21 | + <IfModule !expires_module> |
| 22 | + RewriteCond %{REQUEST_FILENAME} -f |
| 23 | + RewriteRule ^(.*\.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt|ico))$ smartoptimizer/?$1 |
| 24 | + </IfModule> |
23 | 25 | </IfModule>
|
| 26 | + |
24 | 27 | <FilesMatch "\.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt|ico)$">
|
25 |
| - FileETag none |
| 28 | + FileETag none |
26 | 29 | </FilesMatch>
|
0 commit comments