Skip to content
This repository was archived by the owner on Sep 23, 2021. It is now read-only.
This repository was archived by the owner on Sep 23, 2021. It is now read-only.

Add support for esi onerror flags #217

@tripodsan

Description

@tripodsan

the esi specification allows to specify a onerror attribute, which controls how the system should behave in case the resource doesn't exist:

If an ESI Processor can fetch neither the src nor the alt, it returns a HTTP status code greater than 400 with an error message, unless the onerror attribute is present. If it is, and onerror="continue" is specified, ESI Processors will delete the include element silently.

so the default behaviour is to respond with an error unless the attribute is onerror="continue" is present.

the current esi in the simulator implementation ignores errors when fetching the include content failed; where as the esi processor in fastly includes the response.body from the 404.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions