Knowledge base

1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!

Optimize server response time (TTFB)

This guide provides suggestions for improvement to reduce the response time of your Web Hosting with Infomaniak.

 

Preamble

  • TTFB, or *Time To First Byte*, is a unit of measurement used to evaluate the response speed of a web server.
  • TTFB measures the time between an HTTP request from a user or browser and the receipt of the first byte of the page to be viewed.
  • This delay is particularly important. It can be part of the SEO criteria taken into account by search engines like Google.
  • If necessary, local partners recommended by Infomaniak can handle these procedures: launch a free call for tenders; they take care of everything, freeing you from technical details.

 

TTFB Improvement Suggestions

To speed up the site and achieve a better TTFB value:

  • Use a content delivery network (CDN).
  • Optimize the site's code.
  • Optimize database queries.
  • Limit HTTP requests.
  • Embed CSS and JavaScript in your HTML pages to avoid calling external resources.
  • Use an RFPL (*Response First, Process Later*) caching system.

Refer to the article by Criticalcase (in English) for more information.

 

Testing the server response speed

If you have doubts about the server response speed, you can create a file named index2.html that will be saved at the same level as the index.html (or .php) file, and thus perform an optimization test (for example, domain.xyz/index2.html) without the main site/CMS being taken into account.

If the response time is normal, this means that the slowness comes from the site and not the server.

 

To go further

Refer to the following resources:


Has this FAQ been helpful?