-4

I have a website and now i want to improve the page speed of the site so i want to gzip the javascript,css files , can any one suggest me and explain how to this ...

2

1 Answer 1

2

When you're using the apache webserver you can add the following bit of configuration to the server config or an .htaccess file:

<IfModule mod_deflate.c>
     <LocationMatch "\.(css|js|x?html?|php)$">
         SetOutputFilter DEFLATE
     </LocationMatch>
</IfModule>
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.