Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Optimize the server response time (TTFB)
This guide provides suggestions for improving 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 considered by search engines like Google.
- Make your life easier! If needed, local partners recommended by Infomaniak can handle these procedures. Launch a free call for tenders. They handle everything, freeing you from technical details.
Suggestions for improving TTFB
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.
Test the server response speed
If you are unsure about the server response speed, you can create a file called index2.html that will be saved at the same level as the index.html (or .php) file, and thus perform an optimization test (e.g., 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:
- Google recommendations
- GTmetrix recommendations
- Test your site's response time from multiple countries
- Test your site's response time
- Optimize a site
Link to this FAQ: