Enabling gzip Сontent Сompression

Add the code written below to your .htaccess file:

SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
      RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding

AddOutputFilterByType DEFLATE text/html text/plain text/css application/json text/javascript app
Was this answer helpful? 0 Users Found This Useful (0 Votes)