muhammad riza vor 6 Jahren
Ursprung
Commit
1dfd3da555
1 geänderte Dateien mit 13 neuen und 1 gelöschten Zeilen
  1. 13
    1
      .htaccess

+ 13
- 1
.htaccess Datei anzeigen

@@ -53,8 +53,9 @@ RewriteRule ^ /index.html
53 53
 	AddType font/woff .woff
54 54
 	AddType font/woff2 .woff2
55 55
 </IfModule>
56
+
56 57
 <IfModule mod_deflate.c>
57
-	AddOutputFilterByType DEFLATE font/eot font/ttf font/woff font/woff2 text/css application/x-javascript text/x-component text/html text/plain text/xml application/javascript image/png
58
+	AddOutputFilterByType DEFLATE font/eot font/ttf font/woff font/woff2 text/css application/x-javascript text/x-component text/html text/plain text/xml application/javascript
58 59
 	<IfModule mod_setenvif.c>
59 60
 		BrowserMatch ^Mozilla/4 gzip-only-text/html
60 61
 		BrowserMatch ^Mozilla/4.0[678] no-gzip
@@ -62,6 +63,17 @@ RewriteRule ^ /index.html
62 63
 	</IfModule>
63 64
 </IfModule>
64 65
 
66
+<IfModule mod_gzip.c>
67
+  mod_gzip_on Yes
68
+  mod_gzip_dechunk Yes
69
+  mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
70
+  mod_gzip_item_include handler ^cgi-script$
71
+  mod_gzip_item_include mime ^text/.*
72
+  mod_gzip_item_include mime ^application/x-javascript.*
73
+  mod_gzip_item_exclude mime ^image/.*
74
+  mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
75
+</IfModule>
76
+
65 77
 <IfModule mod_headers.c>
66 78
     RewriteCond "%{HTTP:Accept-encoding}" "gzip"
67 79
     RewriteCond "%{REQUEST_FILENAME}\.gz" -s

Laden…
Abbrechen
Speichern