Magento Optimized htaccess

                                  Magento Optimized htaccess


The following htaccess entries are the optimized htaccess for a Magento, it will speedup your site upto 20%.
I have tested this htaccess in few sites and i have found that the speed of the site increased by 20%. You can also view the performance of your site after adding this site using the following link.

https://developers.google.com/speed/pagespeed/insights/

Feel the difference and optimize your site easily just by adding this, If you are getting more than 80% for your site in the above page speed test, it a good result.


########################################################################

## enable apache served files compression (not php, html/images/css/js

## http://developer.yahoo.com/performance/rules.html#gzip

<IfModule mod_deflate.c>

          # 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

</IfModule>

###################################################################

## Enable keep-alives to reduce # http requests

<ifModule mod_headers.c>

            Header set Connection keep-alive

</ifModule>

###################################################################

## Add default Expires header

## http://developer.yahoo.com/performance/rules.html#expires

<IfModule mod_expires.c>

# Turn on Expires and set default to 0

            ExpiresActive On

            ExpiresDefault A0

            # Set up caching on media files for 1 year (forever?)

            ExpiresDefault A29030400

            Header append Cache-Control "public"

            # Set up caching on media files for 2 weeks

            ExpiresDefault A1209600

            Header append Cache-Control "public"

            # Set up 1 week caching on commonly updated files

            ExpiresDefault A604800

            Header append Cache-Control "proxy-revalidate"

            # Force no caching for dynamic files

            ExpiresActive Off

            Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"

            Header set Pragma "no-cache"

</IfModule>

Header unset Pragma
Header unset ETag
FileETag None

##############################################################################


Hope this helped....

This entry was posted by Unknown. Bookmark the permalink.

252 thoughts on “Magento Optimized htaccess”

«Oldest   ‹Older   201 – 252 of 252   Newer›   Newest»
  1. Besthttp://Ensaneleather.com Custom Leather Jackets for Men and Women.

    LeatherAmerican Leather Jacket is a symbol of power and protection, till this day it is used to protect its wearer from the hardships of the weather.
    Custom leather jacket masterLeather jackets for men are designed for many purposes and is a trend that never gets old.custom leather coat Uk is a country renowned to have long
    spellsBest Leather Jacket in nyc of cold which makes it inevitable to invest in leather jackets, trenches and trendy coats to shield yourselves from theseReal Leather Jackets in Chicago
    cold sprees. It being suchcustom leather jackets for women a trend setting yet necessary article of clothing it is difficult to find an authentic yet affordable
    Low Price Leather Jackets in Downtownleather jackets in UK but all those grievances are solved by the vast assortment of leather jackets provided at no other placeBest Leather Jacket in downtown
    than Ensane Leather. Leather Vests rangeCustom Leather Jacket in Montreal at Ensane Leather are a good source of protection against cold atmosphere and easy to wear
    Leather Jackets for Men in downtownunder daily clothing giving off a sleek and tough look. Moreover leather trench coats work for both Leather Jackets for Women in downtowncasual and business professional
    attire and leather fur coats is snazzyMen’s Leather Bomber Jackets in nyc apparel for outdoor gatherings giving off a sophisticatedrevo jacket look and simultaneously keeping you warm.
    Fashion Leather Jacket in OntarioAn amalgamation of esthetically pleasing, chic looking, trendsetting leather jackets for women which are full of pizazz are available athow to clean leather jackets lining
    Ensane Leather.Biker leather jacket in Quebec City Toronto is the hub for rapidly progressing fashion industry yet due to recent economic turmoil finding a low priced leather
    jackets for a trendy Canadianbleach faux leather is challenging yet important .

    Check our website:http://Ensaneleather.com

  2. Good Post! , it was so good to read and useful to improve my knowledge as an updated one, keep blogging. After seeing your article I want to say that also a well-written article with some very good information which is very useful for the readers....thanks for sharing it and do share more posts like this.

    angularjs online training

  3. MyAssignmentHelpNow is famous for providing quality assignment help services at reasonable prices. We have been serving quality writing service on various subjects to reach out the maximum number of students in Australia by ensuring that our prices remain cheap and affordable. Our experts are quite skilled and knowledgeable to accomplish challenging tasks and we always strive to help you with best and cheap assignment writing service in Australia.

    MyAssignmentHelp

  4. wonderful article contains lot of valuable information. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.
    This article resolved my all queries.good luck an best wishes to the team members.learn digital marketing use these following link
    Digital Marketing Course in Chennai


  5. I have been working as a full-time academic at MyAssignmentHelpNow to help students with their academic writing requirements. We offered assignment help to the students who are struggling with their academic writing tasks. Our experts possess a good writing and researching skills and thus we are able to provide the best supervision to the students.


    Online Assignment Help

«Oldest ‹Older   201 – 252 of 252   Newer› Newest»