79174429

Date: 2024-11-10 08:24:38
Score: 0.5
Natty:
Report link

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;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: NodeUnderflow