Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Optimize the server response time (TTFB)
This guide provides tips for improving the response time of your Web Hosting Infomaniak.
Preamble
- TTFB, or *Time To First Byte*, is a measurement unit used to evaluate the response speed of a web server.
- The 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 tasks**. Launch a **free call for tenders**. They take care of everything, freeing you from technical details.
Tips to improve TTFB
To speed up the site and achieve a better TTFB value:
- Use a content delivery network (CDN).
- Optimize the site's code.
- Optimize the database queries.
- Limit HTTP requests.
- Include CSS and JavaScript in your HTML pages to avoid calling external resources.
- Use an RFPL (*Response First, Process Later*) caching system.
Read the article by Criticalcase (in English) for more information.
Test the server response speed
If you are unsure about the server's 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
Take note of the following resources:
- Google Recommendations
- Recommendations from GTmetrix
- Test the response time of your site from several countries
- Test the response speed of your site
- Optimize a site
Link to this FAQ: