Skip to main content
Table of contents

TimeToFirstByte Timeout

TimeToFirstByte Timeout defines the maximum time permitted between the beginning of a backend request for a resource and the first byte of that resource received from the upstream server. If a response is not received before the timeout, then the process will generate a 503 (Service Unavailable) error.

CacheFly initially sets this timeout to be 3 seconds. After expiry of this time (or possibly after expiry of the Origin Error TTL), upstream server retry resumes with the next request.

You can change the value of the TimeToFirstByte Timeout for individual CacheFly services. See more on creating and managing a service.

Scroll the graphics in this step horizontally to see all the screens, and where to find this function for a given CacheFly service.

Setting TimeToFirstByte Timeout

To set TimeToFirstByte Timeout for a specific service, first navigate to the OPTIONS for that service (Configuration > Services > [SERVICE NAME] > OPTIONS in the left-hand menu).

Click on OPTIONS to expand the menu, then click on TimeToFirstByte Timeout, or scroll down until you reach the TimeToFirstByte Timeout section.

If the button/toggle to the right of the mention TimeToFirstByte Timeout displays Disabled, then you can enable it as follows:

  • Click on the button/toggle labeled Disabled

  • A popup window is displayed asking you to confirm your choice

  • When you click on the red button Yes, the button/toggle will display Enabled and will also turn from gray to blue.

To change the timeout:

  • Enter the new value in seconds for the timeout in the field that is displayed. For example, if you enter 2, the timeout will become 2 seconds.

  • Click on the blue button Apply Changes.

  • A message is displayed briefly at the top right of the screen to confirm Service options updated with success.

Scroll the graphics in this step horizontally to see all the screens.

Disabling or Resetting the Timeout to its Initial Value

To reset the TimeToFirstByte Timeout to its initial value of 3 seconds, you can:

EITHER

A. Click on the button/toggle displayed as Enabled, then click on the red button Yes in the popup window that asks you to confirm your choice. The button/toggle then turns from blue to gray and shows Disabled.

A confirmatory message is displayed briefly and the timeout value (now grayed out) is displayed as 3.

The possibility of other choices for the timeout is now disabled.

OR

B. Change the value in the field as in the preceding step, by entering 3 and clicking on the blue button Apply Changes.

The possibility of other choices for the timeout remains enabled.

Scroll the graphics in this step horizontally to see all the screens.

Additional Help Topics