XDebug Plugin

The XDebug plugin allows HTTP clients to debug the operation of the Traffic Server cache using the X-Debug header. The plugin is triggered by the presence of the X-Debug header in the client request. The contents of this header should be the names of the debug headers that are desired in the response. The XDebug plugin will remove the X-Debug header from the client request and inject the desired headers into the client response.

XDebug is a global plugin. It is installed by adding it to the plugin.config file.

Debugging Headers

The XDebug plugin is able to generate the following debugging headers:

Via
If the Via header is requested, the XDebug plugin sets the proxy.config.http.insert_response_via_str configuration variable to 3 for the request.
X-Cache-Key
The X-Cache-Key contains the URL that identifies the HTTP object in the Traffic Server cache. This header is particularly useful if a custom cache key is being used.