D
D
DoubleWish2015-08-13 11:44:36
PHP
DoubleWish, 2015-08-13 11:44:36

How to know if gzip is being used?

I put the site on the open server and write it in htaccess:
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application /x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
How do I know if it even worked? The network shows 85kb on the local and on the hosting. checkgzipcompression.com writes that up to 15kb is compressed and 85 is unzipped.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
webpixel, 2015-08-13
@ZeroPT

checkgzipcompression.com
https://developers.google.com/speed/pagespeed/insights/
example config:
https://github.com/h5bp/html5-boilerplate/blob/mas...
https://github.com/ h5bp/server-configs-apache

I
Ilya Voropaev, 2015-08-13
@SV0L0Ch

Check the headers of the file being sent, in theory it should be written in them if the file is compressed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question