]> git.mxchange.org Git - friendica.git/blobdiff - view/.htaccess
Continued:
[friendica.git] / view / .htaccess
index 559a5fcc09638da18364d85f11f2723b81b28488..6871f092743cd606942c159ad8108f928c26b043 100644 (file)
@@ -1,3 +1,25 @@
 <FilesMatch "\.tpl">
-Deny from all
-</FilesMatch>
\ No newline at end of file
+  <IfModule authz_host_module>
+    #Apache 2.4
+    Require all denied
+  </IfModule>
+  <IfModule !authz_host_module>
+    #Apache 2.2
+    Deny from all
+  </IfModule>
+</FilesMatch>
+
+<IfModule mod_expires.c>
+  ExpiresActive On
+  ExpiresByType image/gif       "access plus 1 year"
+  ExpiresByType image/jpeg      "access plus 1 year"
+  ExpiresByType image/png       "access plus 1 year"
+  ExpiresByType application/javascript "access plus 1 month"
+  ExpiresByType text/javascript "access plus 1 month"
+  ExpiresByType text/css        "access plus 1 month"
+</IfModule>
+<IfModule mod_headers.c>
+  <FilesMatch "\.(gif|jpe?g|png|js|css)$">
+    Header set Cache-Control "public"
+  </FilesMatch>
+</IfModule>
\ No newline at end of file