aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-10-26 16:40:25 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-10-26 16:40:25 +0200
commitcd46bd33e718780c692836d559235b39047e4f8a (patch)
tree1f9b9245d88b43b401df73ff8ee37b0e6a19e379
parent94a887f321e7ed35b0a7d052e93d9ffe0e3c0b9b (diff)
parent9940e3e0e22bfffc3efed3458ebc4545bccbc875 (diff)
Merge branch 'htaccess' of https://github.com/Alkarex/FreshRSS into Alkarex-htaccess
-rw-r--r--public/.htaccess40
1 files changed, 40 insertions, 0 deletions
diff --git a/public/.htaccess b/public/.htaccess
new file mode 100644
index 000000000..624b29720
--- /dev/null
+++ b/public/.htaccess
@@ -0,0 +1,40 @@
+<IfModule mod_dir.c>
+ DirectoryIndex index.php index.html
+</IfModule>
+
+FileETag None
+AddDefaultCharset UTF-8
+
+<IfModule mod_mime.c>
+ AddCharset UTF-8 .css
+ AddCharset UTF-8 .js
+ AddCharset UTF-8 .svg
+ AddType application/font-woff .woff
+</IfModule>
+
+<IfModule mod_expires.c>
+ ExpiresActive on
+ ExpiresByType application/font-woff "access plus 1 month"
+ ExpiresByType application/javascript "access plus 1 week"
+ ExpiresByType image/gif "access plus 1 month"
+ ExpiresByType image/png "access plus 1 month"
+ ExpiresByType image/svg+xml "access plus 1 month"
+ ExpiresByType image/x-icon "access plus 1 year"
+ ExpiresByType text/css "access plus 1 week"
+ ExpiresByType text/javascript "access plus 1 week"
+ <FilesMatch "\.php$">
+ ExpiresActive Off
+ </FilesMatch>
+</IfModule>
+
+<IfModule mod_headers.c>
+ <FilesMatch "\.(css|ico|gif|png|woff)$">
+ Header merge Cache-Control "public"
+ </FilesMatch>
+</IfModule>
+
+<Files "favicon.ico">
+ Order Deny,Allow
+ Allow from all
+ Satisfy Any
+</Files>