Browse Source

Add FilesMatch directive

RT#1744
Benjamin Gaudé 1 year ago
parent
commit
762864c0b1
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      tmpl/msebundle-apache.conf

+ 5
- 0
tmpl/msebundle-apache.conf View File

@@ -31,6 +31,11 @@
31 31
         AllowOverride All
32 32
         Require all granted
33 33
     </Directory>
34
+    
35
+    <FilesMatch "\.(png|jp?g|gif|ico|css|map|woff?|eot|svg|ttf|js|json|pdf)">
36
+        ExpiresActive on
37
+        ExpiresDefault "access plus 1 weeks"
38
+    </FilesMatch>    
34 39
 
35 40
     # uncomment the following lines if you install assets as symlinks
36 41
     # or run into problems when compiling LESS/Sass/CoffeeScript assets

Loading…
Cancel
Save