Browse Source

new fixs mhs

muhammad riza 6 years ago
parent
commit
1dfd3da555
1 changed files with 13 additions and 1 deletions
  1. 13
    1
      .htaccess

+ 13
- 1
.htaccess View File

53
 	AddType font/woff .woff
53
 	AddType font/woff .woff
54
 	AddType font/woff2 .woff2
54
 	AddType font/woff2 .woff2
55
 </IfModule>
55
 </IfModule>
56
+
56
 <IfModule mod_deflate.c>
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
 	<IfModule mod_setenvif.c>
59
 	<IfModule mod_setenvif.c>
59
 		BrowserMatch ^Mozilla/4 gzip-only-text/html
60
 		BrowserMatch ^Mozilla/4 gzip-only-text/html
60
 		BrowserMatch ^Mozilla/4.0[678] no-gzip
61
 		BrowserMatch ^Mozilla/4.0[678] no-gzip
62
 	</IfModule>
63
 	</IfModule>
63
 </IfModule>
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
 <IfModule mod_headers.c>
77
 <IfModule mod_headers.c>
66
     RewriteCond "%{HTTP:Accept-encoding}" "gzip"
78
     RewriteCond "%{HTTP:Accept-encoding}" "gzip"
67
     RewriteCond "%{REQUEST_FILENAME}\.gz" -s
79
     RewriteCond "%{REQUEST_FILENAME}\.gz" -s

Loading…
Cancel
Save