True if this backend, or recursively any of the backends under this director, is not a shield backend. False otherwise
Try it out
req.backend.is_origin is used in the following solution recipes, which show real world use cases. Click RUN to provision a Fastly service, execute the code on Fastly, and see how the function behaves.
Follow redirects at the edge
Protect clients from redirects by chasing them internally at the edge, and then return the eventual non-redirect response.
Failover to a secondary backend
If primary backend fails, retry with a different backend without caching the failure or reducing cache efficiency.
User contributed notes
We welcome comments that add use cases, ideas, tips, and caveats. All comments will be moderated before publication. To post support questions, visit our support center and we'll find you the help you need.