1. Declare a cache section, allocate a shared cache memory named <name>, the
    2. size of cache is mandatory.

    1. Define the maximum size of the objects to be cached. Must not be greater than
    2. an half of "total-max-size". If not set, it equals to a 256th of the cache size.

    10.2.2. Proxy section

    1. Try to deliver a cached object from the cache <name>. This directive is also
    2. mandatory to store the cache as it calculates the cache hash. If you want to
    3. use a condition for both storage and delivering that's a good idea to put it
    4. after this one.

    http-response cache-store [ { if | unless } ]

    1. mode http
    2. http-response cache-store foobar
    3. server srv1 127.0.0.1:80
    4. cache foobar
    5. total-max-size 4

    HAProxy 2.0.14 – Configuration Manual
    2020/04/02, willy tarreau