- Declare a cache section, allocate a shared cache memory named <name>, the
- size of cache is mandatory.
- Define the maximum size of the objects to be cached. Must not be greater than
- an half of "total-max-size". If not set, it equals to a 256th of the cache size.
10.2.2. Proxy section
- Try to deliver a cached object from the cache <name>. This directive is also
- mandatory to store the cache as it calculates the cache hash. If you want to
- use a condition for both storage and delivering that's a good idea to put it
- after this one.
http-response cache-store [ { if | unless } ]
mode http
http-response cache-store foobar
server srv1 127.0.0.1:80
cache foobar
total-max-size 4
HAProxy 2.0.14 – Configuration Manual
2020/04/02, willy tarreau