For my gzip compression I've added the next declarartion during my apache httpd.conf:

<VirtualHost *:80>
    AddOutputFilterByType DEFLATE text/html text/xml text/plain text/css text/javascript text/x-json 

Things I require is to create restriction towards the minimal content length that ought to be compressed.

For instance I'd like this filter works only inside a situation when content dimensions are greater then 10k