#StackBounty: #haproxy How to cache static assets for domain in haproxy

Bounty: 100

For a specific URL, I’d like to set cache-control headers for static assets such as /images/*, /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.

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.