MEDIUM: cache: Change caching conditions

Do not cache responses that do not have an explicit expiration time
(s-maxage or max-age Cache-Control directives or Expires header) or a
validator (ETag or Last-Modified headers) anymore, as suggested in
RFC 7234#3.
The TX_FLAG_IGNORE flag is used instead of the TX_FLAG_CACHEABLE so as
not to change the behavior of the checkcache option.
This commit is contained in:
Remi Tricot-Le Breton 2020-11-12 11:14:41 +01:00 committed by William Lallemand
parent 91dc0c0d8f
commit cc9bf2e5fe
7 changed files with 196 additions and 8 deletions