Real URLs for AMP Cached Content Using Cloudflare Workers
Nov 13, 2018Gabbi Fisher, Avery Harnish

Summary
This post details the implementation of HTTP signed exchanges using Cloudflare Workers to enable real URLs for AMP cached content. It explains the technical challenges of serving cached content under origin URLs due to security and certificate requirements, and how HTTP signed exchanges, a component of Web Packaging, solve this by allowing third-party caches to serve content with proof of integrity and authenticity. The post outlines the cryptographic details of MICE (Merkle Integrity Content Encoding) and CBOR for generating signed exchanges and demonstrates how Cloudflare Workers can automate this process.