Fastly-Debug

Ask for more debug information.

Fastly reads this header from requests. It is proprietary to Fastly.

If an inbound request has the Fastly-Debug header set (conventionally to 1 but actually any value is acceptable), this will prompt Fastly cache servers to output additional response headers:

The presence of the header will also prevent the following headers from being removed, if they are already present on a response:

If you wish to prevent users from triggering debug information in the response on your Fastly service, you can choose to strip the header from the request. Since it is often useful to retain the capability for your own use, you could require it to be set to a more obscure value:

vcl_recv { ... }
Fastly VCL
if (req.http.Fastly-Debug != "o37valg966qgfit63-5iw877gvfgq1") {
unset req.http.Fastly-Debug;
}

User contributed notes

BETA

Do you see an error in this page? Do have an interesting use case, example or edge case people should know about? Share your knowledge and help people who are reading this page! (Comments are moderated; for support, please contact support@fastly.com)