S-maxage header

Hi,

What’s the easiest way to set the s-maxage header correctly?

For example to set s-maxage to 365 days inside a location statement that
matches images, JS and CSS files. This is needed so that the proxy will
cache the file but the client won’t.

Posted at Nginx Forum: