"Reduce initial server response time"

Caspooor

Regular Member
Joined
Apr 12, 2013
Messages
357
Reaction score
244
So FINALLY I was able to be in the green score in Google's PageSpeed Insights

2020-11-20_17-01-15.jpg


But I got this error, which is infuriating!

2020-11-20_17-00-55.jpg


I have Optimized images, Integrated CDNs, Installed WP Rocket, Minified CSS/JS, etc....

Anyone knows how I can solve this? 2.5s alone for this is crazy
 
Either a faster server or less work for it to do...

Check into enabling things like caching.
 
Either a faster server or less work for it to do...

Check into enabling things like caching.

less work for it to do...

What do you mean?
 
less work for it to do...

What do you mean?
Well, like if you have Wordpress, there are a lot of options. Plugins even when they're not kicking in can slow down building the output some. We're talking server-side so javascript, etc, those things won't affect that number. For every visitor the server has to put together what to display and then send it out.

Caching is usually the most effective means by a long shot, as the server can re-use it's previous work and take a large shortcut. Effectively, creating less work so the output gets kicked out earlier.
 
intitial server response time is when the server processes the request and readies the response. the slower the server or heavier the task, it will slow that time.

aggressive cache usually does the trick, but then it can serve stale content at times. so there is a trade off if you can't manage them properly. better for sites that don't update too often.

if you run wordpress, try benchmarking the plugins and theme with the plugin profiler. you'll get an idea of what plugin is dragging it down
 
Changing Host, db caching, page caching - you could try these.
 
On Cloudflare you should add Page rule "Cache Level: Cache Everything" to root domain to get good TTFB. And in "Caching configuration" --> "Browser Cache TTL" choose some time - what is good for you.

But if your website is dynamic - this is a problem.
 
where is your hosting located?

Netherlands.

Well, like if you have Wordpress, there are a lot of options. Plugins even when they're not kicking in can slow down building the output some. We're talking server-side so javascript, etc, those things won't affect that number. For every visitor the server has to put together what to display and then send it out.

Caching is usually the most effective means by a long shot, as the server can re-use it's previous work and take a large shortcut. Effectively, creating less work so the output gets kicked out earlier.

Thanks for the explanation. Yeah I think it was a cache problem. It's better now.

intitial server response time is when the server processes the request and readies the response. the slower the server or heavier the task, it will slow that time.

aggressive cache usually does the trick, but then it can serve stale content at times. so there is a trade off if you can't manage them properly. better for sites that don't update too often.

if you run wordpress, try benchmarking the plugins and theme with the plugin profiler. you'll get an idea of what plugin is dragging it down

Yeah, I think it was the cache.

What's your score for mobile?

In the 70s, but that's because I'm just focusing on optimizing for desktop. My mobile version of the website is pretty messed up. (I'm using a page builder so it's not responsive yet on mobile)


Changing Host, db caching, page caching - you could try these.

I tried fixing my cache and it's better now.

On Cloudflare you should add Page rule "Cache Level: Cache Everything" to root domain to get good TTFB. And in "Caching configuration" --> "Browser Cache TTL" choose some time - what is good for you.

But if your website is dynamic - this is a problem.

I'm sending you a virtual hug, hahahaha

This improved the speed by quite a margin. Thank you.

I tested on clean browsers as well and it's faster now. But it's still a bit slow when I open it while I'm logging in in my WP dashboard. Is it usually the case that the website is slower with the admin? I read somewhere that's true, no?

Thanks again for opening my eyes on Cloudflare's settings.
 
Last edited:
You can add another rules to not cache admin pages if you have some problems. If a site is slow only on admin panel it is not a problem, admin pages is not for SEO :)
 
More than just hosting, it may also be the time taken by some our your scripts on the website aswell
 
You can add another rules to not cache admin pages if you have some problems. If a site is slow only on admin panel it is not a problem, admin pages is not for SEO :)

No, I didn't mean my wp-admin page is slow, my website itself is a bit slower while I'm logging in as I browse it.

It's much faster on a clean browser (when I'm not logged in in general, like a visitor)
 
Netherlands.



Thanks for the explanation. Yeah I think it was a cache problem. It's better now.



Yeah, I think it was the cache.



In the 70s, but that's because I'm just focusing on optimizing for desktop. My mobile version of the website is pretty messed up. (I'm using a page builder so it's not responsive yet on mobile)




I tried fixing my cache and it's better now.



I'm sending you a virtual hug, hahahaha

This improved the speed by quite a margin. Thank you.

I tested on clean browsers as well and it's faster now. But it's still a bit slow when I open it while I'm logging in in my WP dashboard. Is it usually the case that the website is slower with the admin? I read somewhere that's true, no?

Thanks again for opening my eyes on Cloudflare's settings.

If you use cache everything rule in Cloudflare, make sure to also add a rule to exclude everything begin with /wp-admin/*. You don't want CF to also cache your WP dashboard because it comes down to the security of your site. Also make sure to carefully check your site because more than often cache everything rule causes problems with javascript codes. For example things that supposed to be displayed only on desktop would also display on mobile and vice versa.
 
No, I didn't mean my wp-admin page is slow, my website itself is a bit slower while I'm logging in as I browse it.

It's much faster on a clean browser (when I'm not logged in in general, like a visitor)

On my sites i did not noticed this. If test like GTMetrix and Google speed shows good result, don't pay attention to this.
 
If you have $5 a month and you are using Wordpress, enable Automatic Platform Optimization for WordPress on Cloudflare. This is insane. You will need the plugin as well. It makes things static and makes it load super fast and get low TTFB.
 
On my sites i did not noticed this. If test like GTMetrix and Google speed shows good result, don't pay attention to this.

They are showing very good results. I will stop optimizing at this point. It's been days lmao

If you have $5 a month and you are using Wordpress, enable Automatic Platform Optimization for WordPress on Cloudflare. This is insane. You will need the plugin as well. It makes things static and makes it load super fast and get low TTFB.

Didn't know about this, I will definitely consider this. Thank you!
 
My thought goes to the server too. WP is a huge resource consumer because of all its features and plugins add an extra delay.

Caching is the way to go but even through, there are areas "uncacheable", like the cart, my account, etc. so if you already cached the site (WP Rocket), used a CDN (like Cloudflare) and minimized scripts and took off anything you are not using, and cleaned the database, then moving to a faster server is the next step.

Any milli-second that non-vital things (like social share plugins) take, is a millisecond multiplied when you have many visitors.
 
Back
Top