Add Expires Header to outgoing

I am running haproxy 1.8.8 —> varnish —> nginx.

the problem i am having is that all the pages come with ‘nocache’ so every time someone accesses the site is does not have any client cache enabled. Is there some way to tell HAPROXY to tell the client to cache static information?

Frank

I strongly suggest you do that in Varnish, it is build for this.

If you have to do it previously, yes, I’m sure you can build something with haproxy too. Read the documentation for more information about header manipulation, especially http-request/response replace-header.

Not sure if you need to rewrite client or server headers, your request is unclear.