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:

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s