Edge@Lambda handlers for AWS CloudFront request and response events.
Read more about Edge@Lambda event structure.
Handler for origin response events
originResponse
(\{ response, request } _ ->
response
|> withHeader
{ key = "cache-control", value = "public, max-age=31536000" }
|> toResponse
)Map request to output event, to be used with originRequest or originResponse
Map response to output event, to be used with originResponse
Types for the lambda event structure.
Handler for origin request events