Answer the question
In order to leave comments, you need to log in
Mod deflate or Mod gzip?
Hello
If both mod_deflate and mod_gzip are available on the server, which one should be used for compression when serving content?
I made the settings "Compress CSS and JS files", "Compress HTML", correctly compress using mod_deflate if it is installed on the server, if not, then through php (then the file is compressed and statically stored on the server)?
Which is better for performance?
Answer the question
In order to leave comments, you need to log in
1) There is not much difference, mod_deflate sometimes compresses a little better, but this is imperceptible on a small volume.
2) Depends on the implementation, if the site is static and you can create an actual compressed version of the page at the time of editing (there is no dynamic content on it), then of course it is better to immediately compress it after editing and distribute it as static. If you also connect caching with cdn, there will be a plane in general. Well, if there is dynamic content, then compress "on the fly" if it really reduces the page size.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question