瀏覽代碼

new fixs mhs

muhammad riza 6 年之前
父節點
當前提交
b20ca86824
共有 1 個檔案被更改,包括 18 行新增1 行删除
  1. 18
    1
      .htaccess

+ 18
- 1
.htaccess 查看文件

14
 
14
 
15
 <FilesMatch "\.(css|js)$">
15
 <FilesMatch "\.(css|js)$">
16
 	<IfModule mod_expires.c>
16
 	<IfModule mod_expires.c>
17
-		ExpiresActive Off
17
+		ExpiresActive On
18
+
19
+		# Images
20
+		ExpiresByType image/jpeg "access plus 1 year"
21
+		ExpiresByType image/gif "access plus 1 year"
22
+		ExpiresByType image/png "access plus 1 year"
23
+		ExpiresByType image/webp "access plus 1 year"
24
+		ExpiresByType image/svg+xml "access plus 1 year"
25
+		ExpiresByType image/x-icon "access plus 1 year"
26
+
27
+		# Video
28
+		ExpiresByType video/mp4 "access plus 1 year"
29
+		ExpiresByType video/mpeg "access plus 1 year"
30
+
31
+		# CSS, JavaScript
32
+		ExpiresByType text/css "access plus 1 month"
33
+		ExpiresByType text/javascript "access plus 1 month"
34
+		ExpiresByType application/javascript "access plus 1 month"
18
 	</IfModule>
35
 	</IfModule>
19
 	<IfModule mod_headers.c>
36
 	<IfModule mod_headers.c>
20
 		FileETag None
37
 		FileETag None

Loading…
取消
儲存