10.1. Limitation

  1. The cache won't store and won't deliver objects in these cases:
  2.  
  3. - If the response is not a 200
  4. - If the response contains a Vary header
  5. - If the Content-Length + the headers size is greater than "max-object-size"
  6. - If the response is not cacheable
  7.  
  8. - If the request is not a GET
  9. - If the HTTP version of the request is smaller than 1.1
  10. - If the request contains an Authorization header
  11.  
  12. Caution!: For HAProxy version prior to 1.9, due to the limitation of the
  13. filters, it is not recommended to use the cache with other filters. Using them
  14. can cause undefined behavior if they modify the response (compression for
  15. example). For HAProxy 1.9 and greater, it is safe, for HTX proxies only (see
  16. "option http-use-htx" for details).