Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Benia on
I got a recommendation to add Gzip to my site (for better page loading and thus better SEO). How can one apply that to Drupal? Thanks very much indeed !
Comments
That is a function of your
That is a function of your web server and will depend on where/how the site is hosted.
Yes, it has nothing to do
Yes, it has nothing to do with Drupal, as it is done at the server level.
=-=
If you've mod_deflate enabled you can test the following to drupal's .htaccess
if mod_gzip you can test the following to drupal's .htaccess
This will send compressed
This will send compressed content regardless of browser headers, I'm guessing ?
What's new and changing in PHP 8
=-=
I can't explain the technical aspects. testing mod_deflate on my own site did increase page loading times.
This will send compressed
This will send compressed content regardless of browser headers, I'm guessing ?
What's new and changing in PHP 8
You can use this tool to see
You can use this tool to see if gzip compression is working on your site:
http://www.whatsmyip.org/http-compression-test/
=-=
reading the core .htaccess files I'm not sure why the addition helps. Core's already existing rules are: