NeovaPlateforme SEO avancée

Temps de réponse du serveur lent en données labo ou terrain

Dans Neova S'exécute quand Lighthouse est activé (un réglage) : il utilise le Chrome de votre Mac.

Règle revue le 17 octobre 2026 · Guide mis à jour le 7 juillet 2026

Le serveur met longtemps à envoyer le premier octet du document principal, ce qui retarde tout ce qui suit. Lighthouse considère comme un échec une réponse labo de plus de 600 ms. Pour les données terrain, web.dev juge le TTFB bon à 0,8 s ou moins et mauvais au-delà de 1,8 s.

Ce que vous pouvez faire

Trouvez l'étape lente sur le serveur, comme les requêtes de base de données ou la génération de la page, puis ajoutez du cache ou un CDN pour la réponse HTML.

Comment Neova le détecte

Neova lance un test de vitesse sur un échantillon de chaque type de page.

Pourquoi Neova le signale

  • Rien d'autre sur la page ne peut démarrer avant l'arrivée du premier octet de HTML : un serveur lent retarde toutes les métriques suivantes.
  • Lighthouse fait échouer une réponse de laboratoire au-delà de 600 ms ; web.dev juge le TTFB terrain bon à 0,8 s ou moins et mauvais au-delà de 1,8 s.
  • Les crawlers de Google réduisent aussi leur fréquence de crawl quand un site répond lentement.

Sources

Le ticket qu'il rédige

Cette partie est en anglais pour l'instant.

PE-022 · Server Response Time Is Slow in Lab or Field Data

How to Check the Fix: 1. Run the check again in Neova
2. Spot-check sample URLs across affected templates
3. Record the re-check date and period label next to the baseline

Neova writes this ticket for every affected page group and sends it to Jira, Linear, Asana and the rest, after you approve it.

Le guide complet

Cette partie est en anglais pour l'instant.

What "Reduce Server Response Times (TTFB)" Actually Flags

This check measures Time to First Byte, the gap between the browser asking for your page and the first byte of the response arriving. It is pure server think time: DNS, connection setup, and above all how long your backend takes to build the HTML. Google's guidance puts a good TTFB under 0.8 seconds; Lighthouse flags anything meaningfully slower. A sluggish TTFB is a tax on everything downstream, because the browser cannot start parsing, painting, or loading a single other asset until that first byte lands.

The stakes: TTFB is the floor under Largest Contentful Paint (LCP). If the server sits idle for a second before responding, your LCP can never beat a second, no matter how well the rest of the page is optimized. Slow responses also drag down crawl rate.

A Real Failing Example (And the Fix)

The most common cause on dynamic sites is a page that runs uncached database work on every request. Here a homepage builds itself fresh for every visitor:

// Every request hits the DB, renders the template, then responds.
// Under load, TTFB climbs from 200ms to 2s+.
$posts   = $db->query("SELECT * FROM posts ORDER BY date DESC LIMIT 20");
$widgets = $db->query("SELECT * FROM widgets");   // repeated per request
echo render_template($posts, $widgets);

The fix is to stop doing that work on the hot path. Cache the rendered output (full-page cache) so most requests never touch PHP or the database at all, and serve it from memory or the edge:

// Serve a cached copy when it exists; only build on a miss.
$key  = 'home:v3';
$html = $cache->get($key);          // memory/object cache
if ($html === false) {
    $posts   = $db->query("SELECT * FROM posts ORDER BY date DESC LIMIT 20");
    $widgets = $db->query("SELECT * FROM widgets");
    $html    = render_template($posts, $widgets);
    $cache->set($key, $html, 300);  // cache 5 minutes
}
echo $html;

Better still, let a full-page cache or a CDN answer the request before it ever reaches your origin:

# Tell the CDN/edge it may cache this HTML briefly
Cache-Control: public, max-age=0, s-maxage=300, stale-while-revalidate=60

Where the Milliseconds Go

Cause of Slow TTFB Tell-Tale Sign Fix
No page cache Every hit runs full backend Full-page / object cache
Slow database queries TTFB spikes under load Index, cache, cut N+1 queries
Distant origin, no edge Far-away users slowest CDN with cached HTML
Underpowered / shared host Consistently high baseline Upgrade tier, tune PHP/opcache
Blocking third-party call TTFB tied to an API's health Cache or async the call

How to Detect It on Your Own Site

  1. PageSpeed Insights: the "Reduce initial server response time" audit at pagespeed.web.dev reports your measured TTFB and flags it against the 0.8s bar, using real-world field data where available.
  2. Lighthouse: the same "Initial server response time" audit runs in DevTools, giving you a repeatable lab number to test fixes against.
  3. DevTools Network panel: click the document request, open Timing, and read "Waiting for server response" (TTFB). Compare cold vs. warm loads to see if caching is doing its job.
  4. WebPageTest: the first row of the waterfall breaks TTFB into DNS, connect, TLS, and "Time to First Byte," so you can tell a slow backend from slow connection setup, and test from multiple locations to expose distance problems.

How to Fix It, Step by Step

  1. Measure a cold and a warm TTFB so you know your baseline and whether caching engages.
  2. Add full-page caching so repeat requests skip application code entirely; add object caching for the dynamic bits that remain.
  3. Profile the slow requests and fix the database, add indexes, kill N+1 query loops, cache expensive lookups. See server response time optimization.
  4. Put a CDN with edge caching in front so cacheable HTML is served near the user, not from a distant origin.
  5. Cache or make asynchronous any blocking third-party API call in the request path.
  6. If the baseline is still high on a warm cache, the host itself is the bottleneck, upgrade or tune the stack (PHP version, opcache, memory).

FAQ

What Is a Good TTFB Number?

Google treats under 0.8 seconds as good and flags noticeably higher. Fast sites often land well under 200ms on a warm cache. Treat 0.8s as the line you should be comfortably beneath, not a goal to just barely clear.

Is TTFB a Core Web Vital?

No, TTFB is a diagnostic metric, not one of the three Core Web Vitals. But it feeds straight into LCP, so a bad TTFB quietly fails you on a metric that is counted. See the TTFB too slow guide for the connection.

Will a CDN Alone Fix Slow TTFB?

Only if the CDN actually caches your HTML. If every request still falls through to a slow origin, the CDN just adds a hop. The win comes from serving cached responses at the edge; an uncacheable dynamic page needs the backend fixed too.

My TTFB Is Fine Locally but Slow for Real Users. Why?

Usually distance and load. Test from multiple WebPageTest locations, faraway users pay for the round trip to a single origin, which edge caching solves, and check whether TTFB degrades under concurrent traffic, which points at missing caching or an undersized host.

Does Slow TTFB Affect Crawling?

Yes. Persistently slow responses can lower how aggressively Google crawls you, and outright timeouts read as 5xx server errors. Keeping TTFB low protects both speed and crawl budget.

Trouvez ce problème sur votre site

Neova lance ce check et tous les autres à chaque crawl, puis rédige la correction sous forme de ticket pour votre équipe.

  • Application de bureau pour Mac, Windows et Linux
  • Les 696 checks, chacun avec sa source
  • Search Console et Analytics 4, connectés en lecture seule
  • Tickets vers Jira, Linear et Asana

Télécharger Neova Offre Desktop Free, ou Solo gratuit pendant 14 jours, sans carte.

Tous les checks de la catégorie Performance · Guides · Bibliothèque des checks

Rédigé par Neova Labs · Retour à la Bibliothèque des checks