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.
My hosting provider doesn't support mod_deflate directives in .htaccess to provide compressed HTTP responses.
I am using Drupal 7 with Boost and wish to compress HTML, CSS and JS responses.
Is there another alternative to do this without .htaccess?
Compression is pretty much needed to speed up page loading. D6 had this inbuilt into boost but in D7 it's missing.
Till the feature is added there, is there any other alternative to approach compression?
Comments
Comment #1
bgm CreditAttribution: bgm commentedSee: #1416214: Basic gzip support for 7x
There is partial support for compression (gzip) in boost 7.x-1.x, but there were reports of it being buggy.
To test it, download the latest -dev release, and uncomment the line near 330:
Please post your feedback in: #1416214: Basic gzip support for 7x
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedIf your host allows it then you can add the follow to .htaccess
or if you do a phpinfo() then you may find on shared hosting that it is common to be able to use a php.ini file in your home directory. That deals with php but not boost. If you do decide to uncomment the line then you should be aware that mainly the problems occur with Chrome as the most affected browser. Though depending on the modules your ISP is loading, then it may affect all browsers. In the previous thread #1416214: Basic gzip support for 7x there was a comparison of the module and also whether altering ForceType in .htaccess may do something to mitigate the issue.