]> git.kaiwu.me - haproxy.git/commit
REGTESTS: cache: validate the emission of 103s
authorMaxime Henrion <mhenrion@haproxy.com>
Tue, 2 Jun 2026 13:08:23 +0000 (09:08 -0400)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 Jul 2026 14:42:35 +0000 (16:42 +0200)
commit66d5d6a54b909e603795d0cd7a0729dc42b80579
treeb04920f8ad2f2a2dc5b3e2c1001c4fa1ae708468
parent51377f9dfb29fde6f291e05801de093604c11bc6
REGTESTS: cache: validate the emission of 103s

Add four regtests to validate the behavior of the HTTP cache when early
hints are enabled.

- early_hints.vtc: covers 103 emission on stripped entries and that the
  "no-early-hints" rule keyword suppresses it.
- early_hints_ratio.vtc: covers cap-driven eviction of hints entries when
  the ratio is reached.
- early_hints_parsing.vtc: pins down the (deliberately strict) Link
  header parsing behaviour of link_is_hint() so future relaxations
  cannot silently change hint detection.
- early_hints_multiblock.vtc: checks that hints are still extracted when
  the relevant Link headers span more than one cache block.
reg-tests/cache/early_hints.vtc [new file with mode: 0644]
reg-tests/cache/early_hints_multiblock.vtc [new file with mode: 0644]
reg-tests/cache/early_hints_parsing.vtc [new file with mode: 0644]
reg-tests/cache/early_hints_ratio.vtc [new file with mode: 0644]