segmented_caching.is_outer_req

BOOL, read-only.

Available inlog

Whether VCL is running in the context of a request that is assembling file segments into a response.

A request for which vcl_recv enabled segmented caching (by setting req.enable_segmented_caching to true) will spawn one or more subrequests, each responsible for a segment of the file. After the sequence of subrequests has completed (each running vcl_log with segmented_caching.is_inner_req evaluating to true), vcl_log will run with segmented_caching.is_outer_req evaluating to true.

This is useful for controlling what to log. segmented_caching.is_inner_req and segmented_caching.is_outer_req will never be true at the same time. They will both be false when segmented caching is not enabled.

User contributed notes

BETA

Do you see an error in this page? Do you 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 Fastly support)