forked from erikwiffin/0.30000000000000004
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
28 lines (27 loc) · 796 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
RewriteEngine on
RewriteCond %{HTTP_HOST} !^0.30000000000000004.com [NC]
RewriteRule ^(.*)$ http://0.30000000000000004.com/$1 [L,R=301]
# 1 YEAR
<FilesMatch "\.(ico|pdf|flv)$">
Header set Cache-Control "max-age=29030400, public"
</FilesMatch>
# 1 MONTH
<FilesMatch "\.(jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=2592000, public"
</FilesMatch>
# 1 WEEK
<FilesMatch "\.(swf|js|css)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
# 2 DAYS
<FilesMatch "\.(xml|txt)$">
Header set Cache-Control "max-age=172800, proxy-revalidate"
</FilesMatch>
# 1 HOUR
<FilesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=3600, proxy-revalidate"
</FilesMatch>
# 1 MIN
<FilesMatch "\.(php)$">
Header set Cache-Control "max-age=60, private, proxy-revalidate"
</FilesMatch>