magento speed optimization extension, magento speed optimization htaccess, magento performance optimization, speed up magento 2, magento site speed test, how to increase site speed in magento, speed up my magento website, query_cache_type magento, speed up magento  using .htaccess

From my personal experience with magento i have seen that the admin panel simply takes ages to load and save changes.Though  It was a default installation with the test data.The server where it is hosted serves other non-Magento sites super fast except magento site. If you are also facing this and speed of magento is a headache to you then maybe i can help because i have got a good solution using .htaccess. Read below

.htaccess settings flow from the top down.

Don’t mess with subdirectory .htaccess files below the Magento root unless you know what you’re doing, they’re there to secure the Magento system. As an example, messing with app/etc/.htaccess can expose your encryption key and database access credentials, a particularly fatal mistake if you’ve enabled remote access to MySQL. You’ve just given the outside world the keys to your kingdom.

To enable deflate/gzip, first your apache server must have the proper module enabled (mod_deflate). Then look up the settings in the .htaccess file in your Magento root folder and enable compression. Magento preinstalls this for you, but with the lines commented out.

To see if your system supports deflate/gzip, create a <?php phpinfo(); ?> file, run it and look for mod_deflate being loaded under apache2handler. Following is a sample

Loaded Modules core mod_log_config mod_logio prefork http_core mod_so mod_actions
               mod_alias mod_auth_basic mod_authn_file mod_authz_default 
               mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex 
               mod_cgi mod_deflate mod_dir mod_env mod_expires mod_fastcgi 
               mod_headers mod_include mod_mime mod_negotiation mod_php5 
               mod_reqtimeout mod_rewrite mod_setenvif mod_ssl mod_status 
               mod_suexec

Magento’s preloaded .htaccess section needs some modifications to enable deflate/gzip Remove the # in front of the appropriate lines to enable compression as follows:

############################################
## enable apache served files compression
## http://developer.yahoo.com/performance/rules.html#gzip

    # 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