.
magento-speed-Up

SIMPLE STEPS TO SPEED UP MAGENTO

Before getting ready to work with Magento store, ensure weather the following setups are done on admin panel and .htaccess file which will helps in maximizing the Magento’s performance.

  1. Ensure for enabled cache
  2. Enable Merge JavaScript file
  3. Enable Merge CSS files
  4. Disable Logs
  5. Enable Compilation Tool
  6. Enable ETags
  7. Enable Header Expires
  8. Duplicate your .htaccess file.

1.   Ensure for Enabled Cache:

Most developers are well known of this initial step. Go to Magento store admin, then navigate to: System>Cache Management and ensure whether everything got enabled.

2. Enable Merge JavaScript File:

Merging every JavaScript files into a single file will reduce the number of HTTP request and this makes magento to run at nice speed. For this you want to navigate: System>Configuration>Developer>JavaScript Settings>Merge JavaScript Files and select “YES” for “Merge JavaScript Files”.

3. Enable Merge CSS File:

This process will reduces the amount of request which makes decrease in loading time and increases the speed to nice extend. To perform this action navigates to: System>Configuration>Developer>CSS Settings>Merge CSS Files and select “YES” for “Merge CSS Files”.

4. Disable Logs:

While doing production Magento installation ensure that whether all logs are getting turned OFF. This can be done by navigating to: System>Configuration>Developer>Log Settings.

5. Enable the Compilation Tool:

Enabling Magento Compilation will speed up production installation process. To execute this action go to: System>Tools>Compilation and click “Run Compilation process”.

Steps next to this will clearly demonstrate about how to handle .htaccess file to speed up Magento 

6. Enable ETags:

Most proficient caches are allowed by ETags and this may saves bandwidth.

            “## If running in cluster environment, uncomment this
               FileETag none”

7. Enable Header Expires:

In general every browser will cache assets for certain period of time before flushing them. All items will automatically re-cache if we edit/clear our browser cache.

            “## Add default Expires header
              ExpiresActive On
              ExpiresDefault “access plus 1 month”.

8. Duplicate your .htaccess file:

Make a copy of our .htaccess file from the root level of our server. We can do this through FTP application. Once open, there are a few things that we can uncomment to speed things up. Find the following snippets and uncomment those codes so they appear as showed below. This will enable GZIP compression.

                “## enable resulting html compression
               php_flag zlib.output_compression on
               ## enable apache served files compression
                # Insert filter on all content
                ###SetOutputFilter DEFLATE 
               # Insert filter on selected content types only
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
              # Netscape 4.x has some problems…
BrowserMatch ^Mozilla/4 gzip-only-text/html
             # Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4.0[678] no-gzip
             # MSIE masquerades as Netscape, but it is fine
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
              # Don’t compress images
 SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
             # Make sure proxies don’t deliver the wrong content
Header append Vary User-Agent env=!dont-vary”

This action will make our Magento store to work with a great speed. Along with this don’t forget to make a backup file for .htaccess before doing any change in previous.

 

Leave a Comment