For a specific URL, I’d like to set cache-control headers for static assets such as
/js/*, etc. that tells the browser to use the local cache for lets say 30 days instead of fetching a new version. How can I accomplish this via haproxy config?
Before this is misunderstood, this is not a duplicate of how to cache contents in HAProxy. I’d merely like haproxy to append headers to requests for certain assets telling the browser to use the local cached version, if available, but only for 1 specific domain.