WebPagetest Forums

Full Version: TTFB grade D when accessing non-www version of website
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Here are my tests results:

http://www.webpagetest.org/result/150813...1/details/

In find the first DNS resolve time pretty long (according to my inexperienced judgment) and that probably explains the Grade D

If I run the test against the www version, then I get grade A or sometimes B.

The permanent redirection from non-www to www is done in the vhost file of my Apache server. I did something like that:

Code:
# Assuming that Apache listens on 127.0.0.1
<VirtualHost 127.0.0.1>
  ServerName domainname.com
  <IfModule mod_alias.c>
    Redirect permanent / http://www.domainname.com/
  </IfModule>
</VirtualHost>

<VirtualHost 127.0.0.1>
  ServerName www.domainname.com
  # other directives to process www.domainname.com
</VirtualHost>
[/
code]

Could someone provide me with a hint to improve the non-www version ?
I wouldn't sweat it too much unless it's normal for traffic to arrive at the non-www version. You will never get a good TTFB grade if a redirect has to happen. Just testing the actual destination (and making sure the redirect is as fast as possible otherwise) is the best way to test.
On a side note... WPML can be brutal with your performance, but seem to be much better in the newer ( 3.2 ) version.
Reference URL's