Site Speed slower w/ http to https redirect.

Discussion in 'White Hat SEO' started by xWGx, Mar 8, 2018.

  1. xWGx

    xWGx Jr. VIP Jr. VIP

    Joined:
    Sep 28, 2017
    Messages:
    199
    Likes Received:
    81
    Gender:
    Male
    Location:
    xWGx
    So I realize how important it is to have a SUPER fast website these days for SEO - for having a low bounce rate and for getting more conversions online.

    I have been working on my sites to optimize them for speed and I've come to a point where everything is 90+ on GTMetrix, Pingdom and PageSpeed Insights.

    BUT - my site speed is STILL at 3.3 seconds. Literally everything possible is OPTIMIZED to extreme extents - hosting is on VPS too at a great provider.

    I just realized that there is 1 SECOND delay with the redirect from http to https. And this optimization I don't know how to make.

    Here is by TTFB - so the server / VPS is not at fault (I guess) -

    prnt.sc/iom8t3

    As you can see the REDIRECT from HTTP to HTTPS itself is taking about 1 second and that is TOO much!

    If anyone can shed some light on this, I'd appreciate.

    (Site is WP)
     
  2. redarrow

    redarrow Elite Member

    Joined:
    Apr 1, 2013
    Messages:
    7,455
    Likes Received:
    1,901
    you need to optimise wp.

    use

    yoast
    cache
     
  3. Jinyus

    Jinyus Regular Member

    Joined:
    Jul 6, 2017
    Messages:
    376
    Likes Received:
    129
    Gender:
    Male
    Are you doing the redirect at the server level or are you using a WordPress plugin? That could be the issue. Besides... It will not have to redirect if the https version is indexed by Google so it shouldn't hurt your seo.
     
    • Thanks Thanks x 1
  4. xWGx

    xWGx Jr. VIP Jr. VIP

    Joined:
    Sep 28, 2017
    Messages:
    199
    Likes Received:
    81
    Gender:
    Male
    Location:
    xWGx
    I'm actually already using most premium cache and speed optimization plugins on the market.
    As I said - I have optimized everything to a point that all site scores are 90+ across all metrics - GT, Pingdom, PageSpeed ...
    It is the redirect that is taking up one full second that is what I think is where the problem lies but I cannot find a way to solve it.
     
  5. xWGx

    xWGx Jr. VIP Jr. VIP

    Joined:
    Sep 28, 2017
    Messages:
    199
    Likes Received:
    81
    Gender:
    Male
    Location:
    xWGx
    @Jinyus I'm actually doing it via a plug-in at the moment.
    Let me test doing it via .htaccess - hope it helps.
     
  6. RipperEssen

    RipperEssen Newbie

    Joined:
    Aug 3, 2017
    Messages:
    20
    Likes Received:
    10
    Without more information it’s hard to give you more as a few general tips.

    How do you do the redirect to HTTPS, Wordpress, Apache or Nginx? If you do it via Wordpress, change it.
    Check the response time of DNS servers.
    Use a CDN.
    You can try nginx (reserve proxy) and mod_pagespeed if you have your own server.
     
  7. Amoxicillin

    Amoxicillin Newbie

    Joined:
    Nov 23, 2016
    Messages:
    46
    Likes Received:
    22
    Gender:
    Male
    Add yourself to the HSTS preload list (headers required) and your visitors won't be given the choice to use non HTTPS

    https://hstspreload.org/
     
    • Thanks Thanks x 3
  8. RipperEssen

    RipperEssen Newbie

    Joined:
    Aug 3, 2017
    Messages:
    20
    Likes Received:
    10
    Good Point, thank you.
     
  9. xWGx

    xWGx Jr. VIP Jr. VIP

    Joined:
    Sep 28, 2017
    Messages:
    199
    Likes Received:
    81
    Gender:
    Male
    Location:
    xWGx
    @Jinyus You made my day. I am down to 2.6s from 3.3s. :D :D :D
    Doing the redirect from .htaccess now using -
    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    THANK YOU for the quick fix.

    Is there anything you can suggest to improve the speed further!

    @RipperEssen Changed to redirect by .htaccess and got some decent improvement.
    I'm on Apache.
    DNS response
    TLD
    Min. Time: 2 ms Max. Time: 63 ms Avg. Time: 22 ms
    Root

    Min. Time: 2 ms Max. Time: 162 ms Avg. Time: 24 ms
    (Edit - No I do not have root access)

    @Amoxicillin I had no clue about this one. On it. Thanks. :D
     
  10. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    13,833
    Likes Received:
    12,429
    Occupation:
    MACHIN LURNIN
    Location:
    TUVALU
    Home Page:
    Is this even a thing or are they just building a list? I don't think they will hardcode billions of sites into Chrome.
     
  11. rimvy

    rimvy Jr. VIP Jr. VIP

    Joined:
    Oct 8, 2017
    Messages:
    397
    Likes Received:
    130
    Gender:
    Male
    Location:
    localhost
    On all my websites I'm using nginx with fastCGI caching. I have configured vps for others also, and I always get load speed under 1s, on WP and Woocommerce. It's worth considering, but to transfer everything it's quite a lot of work.
     
  12. xWGx

    xWGx Jr. VIP Jr. VIP

    Joined:
    Sep 28, 2017
    Messages:
    199
    Likes Received:
    81
    Gender:
    Male
    Location:
    xWGx
    Is there any equivalent of that that can be realized on Apache?
    Moving sites + subdomains is not going to be easy. :(
     
  13. EasternEuropean

    EasternEuropean Registered Member

    Joined:
    Feb 11, 2018
    Messages:
    68
    Likes Received:
    8
    Gender:
    Male
    Good job. I had the same problem and the solution was to do it from htaccess file.

    Also, check with nibbler site checkup and check your grade for "server problems", to make sure you don't have any issues with the bar at the end of the URL. This has nothing to do with speed but it's something that I've found out while implementing https
     
  14. rimvy

    rimvy Jr. VIP Jr. VIP

    Joined:
    Oct 8, 2017
    Messages:
    397
    Likes Received:
    130
    Gender:
    Male
    Location:
    localhost
    There is solutions for apache caching, but I never tried any of them. One thing to consider as well, you could try to use mod_pagespeed from google, you can add it to apache pretty easily, your visitors get faster load speed, but it's resource hungry.
     
    • Thanks Thanks x 1
  15. xWGx

    xWGx Jr. VIP Jr. VIP

    Joined:
    Sep 28, 2017
    Messages:
    199
    Likes Received:
    81
    Gender:
    Male
    Location:
    xWGx
    More info into the metrics from Pingdom (92 A)

    https: //prnt.sc/iomzmf

    https: //prnt.sc/iomzjt

    @EasternEuropean

    Checked on nibbler. There is a section 'Server Behavior' - no issues in that section - 10/10.

    @rimvy Thanks! Looking into it immediately.


    My dream is to get it to 1 second or lower. 2.6 s at the moment. Lets see. :D
     
  16. rimvy

    rimvy Jr. VIP Jr. VIP

    Joined:
    Oct 8, 2017
    Messages:
    397
    Likes Received:
    130
    Gender:
    Male
    Location:
    localhost
    If nothing helps, try to clone your wp website for testing purpose, and run it on nginx server, with fastcgi caching. If you decide to do this, let me know, I'll give you my nginx config.
     
  17. Jinyus

    Jinyus Regular Member

    Joined:
    Jul 6, 2017
    Messages:
    376
    Likes Received:
    129
    Gender:
    Male
    Glad to hear that you fixed it. Can't really recommend much without inspection. The best caching plugin in my experience is wp rocket. You can try using a cdn and spreading the static assets across multiple domains
     
    • Thanks Thanks x 1
  18. xWGx

    xWGx Jr. VIP Jr. VIP

    Joined:
    Sep 28, 2017
    Messages:
    199
    Likes Received:
    81
    Gender:
    Male
    Location:
    xWGx
    WP Rocket is exactly what I'm using. And I' using CloudFlare for CDN.
    Working on HSTS + Server Site Caching a bit - hopefully all will go well. :D
     
  19. RipperEssen

    RipperEssen Newbie

    Joined:
    Aug 3, 2017
    Messages:
    20
    Likes Received:
    10
    Try bunny cdn it’s a good choice for me. Cloudflare as Anycast DNS Provider is fine but the cdn is not the best one, if you don’t pay for it.
     
  20. WhiteHatNormie

    WhiteHatNormie Newbie

    Joined:
    Mar 9, 2018
    Messages:
    8
    Likes Received:
    0
    Gender:
    Male
    Does your host support HTT P /2 ? If it does support it, your website will actually be a little faster overall, despite the bigger TTFB. If it doesn't support it, then change your host. Also, it should support php 7.

    As for testing, google page speed is trash and that score does not reflect reality. For in depth testing, use Wep Page Test along with GTMetrix and Pingdom that you are already using.