How to enable GZip compression in XAMPP server

By: TarranJones

When we test our webiste by and we get error:

The following publicly cacheable, compressible resources should have a “Vary: Accept-Encoding” header


Find apache\conf\httpd.conf

uncomment the following line(remove #)

LoadModule headers_module modules/

some versions may require you to comment out the following lines instead.

LoadModule headers_module modules/
LoadModule deflate_module modules/

finally add this line to your .htaccess file.

SetOutputFilter DEFLATE

Copy from: