O'Reilly logo

Magento Extensions Development by Jérémie Bouchet

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Best practices

If it's not properly configured, Magento will run slowly, since it is a heavy solution. Adding non-optimized extensions will further increase the loading time of your store.

Editing the .htaccess file for compression

Magento has thousands of scripts loading on each server request. You can reduce the loading time by enabling gzip compression.

Note

By default, this option is disabled in Magento.

To enable gzip compression, your server must have the mod_deflate module enabled. Then, you need to activate zlib output compression as follows.

Open the [magento_root]/.htaccess file and modify it by uncommenting the following lines:

############################################ ## enable resulting html compression php_flag zlib.output_compression ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required