소스 검색

Merge branch 'htaccess' of https://github.com/Alkarex/FreshRSS into Alkarex-htaccess

Marien Fressinaud 12 년 전
부모
커밋
cd46bd33e7
1개의 변경된 파일40개의 추가작업 그리고 0개의 파일을 삭제
  1. 40 0
      public/.htaccess

+ 40 - 0
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>