Setting cache-control: max-age=31536000 with a Cloudflare Transform Rule

from blog Simon Willison TIL, | ↗ original
I ran https://simonwillison.net/ through PageSpeed Insights and it warned me that my static assets were not being served with browser caching headers: I serve static assets for my blog (mainly images) from static.simonwillison.net, which is an AWS S3 bucket served via Cloudflare. I investigated with curl -i: curl -I...