Matt Posted April 21, 2015 Share Posted April 21, 2015 Larry, I was reading the section in the book about gzipping files, but it seems like it is more directed towards compressing text/database output. What I want is to gzip all html, css, and image files before sending them to the browser. I have done some research on this topic and it seems there are a few ways to do it. I heard that it can be done with a directive in an .htaccess file also. What is the best practice for gzipping site resources before sending them to the client? Thanks, Matt Link to comment Share on other sites More sharing options...
Larry Posted April 21, 2015 Share Posted April 21, 2015 Normally you'd configure your web server to do it automatically for all files. Link to comment Share on other sites More sharing options...
Matt Posted April 22, 2015 Author Share Posted April 22, 2015 Larry, Thanks for the reply! So I should do it with a .htaccess file (I'm on a hosted server)? Thanks, Matt Link to comment Share on other sites More sharing options...
Larry Posted April 22, 2015 Share Posted April 22, 2015 Yes, exactly. Link to comment Share on other sites More sharing options...
Recommended Posts