I’m just learning ways to compress my website and i came upon two methods. One of them is apache’s mod_gzip module and the other is php’s output buffering, since they both compress files, would using both methods be redundant and unnecessary? Or is there a distinction between the two methods i should know about?
Share
Yes, the two methods are redundant to one another. Between the two,
mod_gzipis generally easier to set up and more comprehensive — as it’s part of Apache,mod_gzipcan compress content (like static HTML, Javascript, and CSS) which isn’t served through PHP.