AWS Cloudfront + lambda@edge modify html content (making all links absolute -> relative) – SEO
I (maybe falsely) assumed lambda@edge can modify origin.responce content, so wrote a lambda function like this: /* this does not work. response.Body is not defined */ 'use strict'; exports.handler = (event, context, callback) => { var response = event.Records[0].cf.response; var…