Postavljenje mod_deflate

Tražio sam po netu kako postaviti mod_deflate i većina stranica kazuje isto

AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
SetOutputFilter DEFLATE

Administratori servera kažu da je mod_deflate instaliran no kad provjerim s ovim http://www.gidnetwork.com/tools/gzip-test.php kaže da mi stranica nije kompresirana.
Ima li tko iskustva s tim

Evo kako deflate izgleda kod mene u .htaccessu:

AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml image/svg+xml
AddOutputFilterByType DEFLATE font/otf font/opentype application/font-otf application/x-font-otf
AddOutputFilterByType DEFLATE font/ttf font/truetype application/font-ttf application/x-font-ttf
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
<IfModule mod_deflate.c>
<FilesMatch "\.(js|css|html|php|ttf|otf|eot|svg)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>

Stvarno ubrzava stranicu. Drastično!!

Korisno s neta:

Enabling mod_deflate (gzip compression) in cPanel

Under Software/Services in your cPanel click on the Website Optimization icon.

Select Compress all content or specific MIME types. To limit which types of content are compressed, choose Compress the specified MIME types and input the particular MIME types you want to compress.

If you specify particular MIME types, it is best not to add image, video, audio, PDF or other types of binary files. These file formats are already compressed, so it is not necessary to compress these further.

Once you have chosen your settings, click Update Settings to save your changes and enable gzip compression on your account.

To turn off gzip compression, select Disabled on the Website Optimization page and click Update Settings.

# gzip compression.
<IfModule mod_deflate.c>
  # html, xml, css, and js:
  AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript text/javascript application/javascript application/json
  # webfonts and svg:
  <FilesMatch "\.(ttf|otf|eot|svg)$" >
    SetOutputFilter DEFLATE
  </FilesMatch>
</IfModule>

html5 boilerplate

Provjeri koja verzija bolje kompresira:

http://www.whatsmyip.org/http-compression-test/


Copyright © 2020 WM Forum - AboutContact - Sponsored by: Mydataknox & Profit Monkey