muhammad riza 6 gadus atpakaļ
vecāks
revīzija
b20ca86824
1 mainītis faili ar 18 papildinājumiem un 1 dzēšanām
  1. 18
    1
      .htaccess

+ 18
- 1
.htaccess Parādīt failu

@@ -14,7 +14,24 @@ RewriteRule ^ /index.html
14 14
 
15 15
 <FilesMatch "\.(css|js)$">
16 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 35
 	</IfModule>
19 36
 	<IfModule mod_headers.c>
20 37
 		FileETag None

Notiek ielāde…
Atcelt
Saglabāt