How to set headers on objects in R2 using rclone
How do you set a Cache-Control header on an object in R2 when you’re using rclone to upload?
I burned a lot of time figuring this out. There are a lot of options that look like they’ll do it, but here it is:
- 404s aren’t cached
- Non-404s are cached heavily
This does it. Phew.