summaryrefslogtreecommitdiff
path: root/p/themes/.htaccess
diff options
context:
space:
mode:
Diffstat (limited to 'p/themes/.htaccess')
-rw-r--r--p/themes/.htaccess21
1 files changed, 21 insertions, 0 deletions
diff --git a/p/themes/.htaccess b/p/themes/.htaccess
new file mode 100644
index 000000000..bde718537
--- /dev/null
+++ b/p/themes/.htaccess
@@ -0,0 +1,21 @@
+<IfModule mod_mime.c>
+ AddType application/font-woff .woff
+
+ AddCharset UTF-8 .css
+ AddCharset UTF-8 .svg
+</IfModule>
+
+<IfModule mod_expires.c>
+ ExpiresActive on
+ ExpiresByType application/font-woff "access plus 1 month"
+ ExpiresByType image/gif "access plus 1 month"
+ ExpiresByType image/png "access plus 1 month"
+ ExpiresByType image/svg+xml "access plus 1 month"
+ ExpiresByType text/css "access plus 1 month"
+</IfModule>
+
+<IfModule mod_headers.c>
+ <FilesMatch "\.svg$">
+ Header set Content-Security-Policy "default-src 'self'; style-src 'self' 'unsafe-inline'"
+ </FilesMatch>
+</IfModule>