1

Recently my site started to use excessive loading times on every page. After the first GET request I have this:

           "receive" : 2,
           "dns" : 15,
           "send" : 0,
           "ssl" : 100,
           "wait" : 6005,
           "blocked" : 1,
           "connect" : 142

I suspect this has to do with the SSL certificate (Let's Encrypt) as my identical subdomain http://stage.example.com does not behave like this. The waiting time is about 1 sec on the stage site.

I have this in my .htaccess file to redirect users to https:

RewriteEngine on
  RewriteCond %{HTTPS} !=on
  # This checks to make sure the connection is not already HTTPS

  RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
  # This rule will redirect users from their original location, to the same location but using HTTPS.
  # i.e.  http://www.example.com/foo/ to https://www.example.com/foo/
  # The leading slash is made optional so that this will work either in httpd.conf
  # or .htaccess context


  # Set "protossl" to "s" if we were accessed via https://.  This is used later
  # if you enable "www." stripping or enforcement, in order to ensure that
  # you don't bounce between http and https.
  RewriteRule ^ - [E=protossl]
  RewriteCond %{HTTPS} on
  RewriteRule ^ - [E=protossl:s]

Anyone who can think of a possible reason for this loading time on my production site?

EDITED: Sorry, the redirect rule was incomplete, the code above is what I use. Also when accessing a phpinfo.php file directly in the root, there is hardly any waiting time (<50 ms).

MrWhite
  • 13,315
TBJ
  • 191

0 Answers0