如何减少我的 TTFB(第一字节时间)加载时间?

How to lessen my TTFB(Time To First Byte) load time?

这是我的网站在第一次点击时编译时的加载时间吗?

我在发布时预编译。
我在 webconfig 文件中设置了 debug="false"。
除了 JQuery 和 google 映射之外,我在 CDN 方面的使用不多。
我的页面大小通常低于 1MB。

According to Google, your website’s TTFB should be 200 milliseconds or less.

If your site is much slower than that, such as 500 milliseconds or more, it needs some work.

Average Time to First Byte is 100-500ms. Google says to aim for 200ms

如果您想测试您的网站 TTFB,您可以在 https://www.webpagetest.org/

输入您的网站 URL

这对我来说似乎有点慢我会检查您的网站是否存在以下可能会降低其 TTFB 速度的因素:

  1. 高网络流量
  2. 网络问题
  3. 动态内容:
  4. 磁盘使用
  5. 磁盘速度
  6. RAM 使用情况
  7. 数据库设置
  8. 数据库速度
  9. 服务器配置:
  10. PHP/ASP 设置
  11. 数据库设置
  12. 共享服务器?

加快页面加载速度的一种好方法是捕获动态页面。

Caching your pages make the pages “pre-built,” with HTML ready to go as soon as a browser requests the pages.

这里有一些开始使用 catche 的方法:

  1. WordPress Plugins. Plugins such as WP Super Cache will help you cache your dynamic pages. The plugin keeps tracks of when a "saved" dynamic page should be renewed so that the freshest copy possible is served. (See also: A Complete Guide To Using W3 Total Cache)

  2. WordPress hosting that caches automatically. WordPress hosting can give you caching capabilities that improve your site’s TTFB.

  3. Server Configuration. A common way to cache files -- but not dynamic content -- is to configure the .htaccess web file. (.htaccess is short for hypertext access.) Beware that minor errors in this file can lead to major problems; hiring a professional is advised.

根据 https://www.searchenginepeople.com/blog/16081-time-to-first-byte-seo.html 这是一个很好的资源。