/ Published in: Apache
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# gzip compression. <IfModule mod_deflate.c> # html, txt, css, js, json, xml, htc: #AddOutputFilterByType DEFLATE text/html text/plain text/css application/json #AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript #AddOutputFilterByType DEFLATE text/xml application/xml text/x-component # OR... AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript # webfonts and svg: <FilesMatch "\.(ttf|otf|eot|svg)$" > SetOutputFilter DEFLATE </FilesMatch> </IfModule>