Server response speed, Time to First Byte (TTFB), has traditionally been seen by webmasters as one of the technical signals for ranking in Google. But in the era of conversational search agents, server performance has taken on practical importance for RAG systems.

When an AI crawler requests a web page during live search to put together an answer, the total generation time is limited by what the user is willing to wait. High server delays lower the source’s priority in the crawl queue.

Official TTFB thresholds and performance standards

Google’s web performance documentation (web.dev) sets clear metric thresholds for TTFB:

  • Good: up to 800 ms (0.8 s). The server sends the first byte of data without delay.
  • Needs Improvement: from 800 to 1,800 ms.
  • Poor: over 1,800 ms (1.8 s).

With a high TTFB, search engine bots spend much more crawl budget on each URL, and conversational systems may prefer alternative sources whose pages return valid HTML faster.

Engineering steps to stabilize response time

  1. Caching at the web server level: using FastCGI cache in Nginx or a configured Redis/Varnish lets you serve static pages without constant database queries.
  2. Checking firewall (WAF) rules: make sure your security settings don’t subject GPTBot or PerplexityBot crawlers to artificial delays or repeated browser checks.
  3. Dropping unnecessary server redirects: each intermediate redirect adds time to set up a network connection and send headers, which adds up and worsens the initial response time.

How to measure TTFB yourself

The fastest way is from the command line. curl shows the time to first byte separately from the full page load:

Terminal

curl -o /dev/null -s -w "DNS: %{time_namelookup}\nConnect: %{time_connect}\nTLS: %{time_appconnect}\nTTFB: %{time_starttransfer}\nTotal: %{time_total}\n" https://example.ru/

On Windows, call curl.exe and replace /dev/null with NUL.

Times are in seconds from the start of the request, and each value includes the ones before it. If most of the time goes to DNS and TLS, the problem is the network and connection settings. If there’s a big gap between TLS and TTFB, the server takes a long time to build the page. One measurement isn’t enough: repeat it several times, because the first request may miss the cache.

Two more data sources:

  • PageSpeed Insights shows the TTFB of real Chrome visitors if the site has enough traffic.
  • The Crawl stats report in Search Console shows the average server response time for Googlebot requests. When this number rises, the number of crawl requests usually drops.

What makes up response time

StageCommon cause of delayWhat to do
DNSA slow DNS providerMove DNS to a fast provider
Connection and TLSServer far from the audience, outdated protocolCDN, HTTP/2 or HTTP/3
Building the pageHeavy database queries, CMS plugins, no cachePage cache, analyzing slow queries
RedirectsA chain http → https → wwwOne redirect straight to the final address

Example: a page cache in Nginx

For PHP sites (WordPress, Bitrix and other CMSs), the FastCGI cache serves a ready-made page without querying the database. A minimal setup:

Nginx

# in the http block
fastcgi_cache_path /var/cache/nginx levels=1:2 keys_zone=PAGES:100m inactive=60m;

# in the server block
location ~ \.php$ {
    fastcgi_cache PAGES;
    fastcgi_cache_key "$scheme$request_method$host$request_uri";
    fastcgi_cache_valid 200 301 10m;
    fastcgi_cache_bypass $cookie_session;
    fastcgi_no_cache $cookie_session;
    add_header X-Cache $upstream_cache_status;
    include fastcgi_params;
    fastcgi_pass unix:/run/php/php-fpm.sock;
}

Pages for logged-in users and the cart must not be cached, so requests with a session cookie bypass the cache. The cookie name and the PHP socket path depend on your CMS and server. You can see the cache working in the X-Cache header: on a repeat curl -sI request it should show HIT.

Check whether your server is ready for the load of modern search: order the Rank By Ai $99 express audit. The full amount ($99) is deducted from your first month of ongoing work if you start within 30 days.

Read next

Frequently asked questions

What TTFB value is considered optimal by Google’s standards?

According to Google’s official web performance documentation (web.dev), a good Time to First Byte (TTFB) is up to 800 milliseconds (0.8 seconds). Values from 800 to 1,800 ms need improvement, and anything over 1,800 ms is rated poor.

How much does a code and server check cost at the Rank By Ai agency?

The technical express check costs $99. This amount is deducted from the cost of your first month of ongoing work if you start working with us within 30 days.

Does TTFB directly affect Google rankings?

TTFB is not part of Core Web Vitals. But it comes before every other loading stage: a slow server response worsens LCP, a metric that is part of Core Web Vitals, and slows down how crawlers crawl the site.