Jon Betts’s answer is useful when you only want a Cache-Control
header.
If you don’t mind also adding an Expires
header, the following one-liner replaces the upstream header with a new Cache-Control
header and an equivalent Expires
header
expires 10;