Closed nigoroll closed 6 years ago
FYI the code is https://github.com/nigoroll/varnish-cache/commits/99cd38f0b9f12f1d78c1f8789dad5d5a4d8b4f5a based upon fe558421628f17340fae6a0b1cca477f04d033b1
As far as I can tell, that AZ() is proper and warranted.
Trying as I might, I can neither see or by experiment hit it.
The only place OF_IMSCAN is set, the first condition is that it cannot be OC_F_PASS and that flag is not adultered after that point in the code.
Possibly relevant: cache_req_fsm line 556 (vcl_hit + return(miss) + busy) is not exercised by any test-case
I'd like to propose two options to fix this:
OA_FLAGS
, preserving an OF_IMSCAND
even if the new object becomes a HFM)But working on this I noticed that we might not want this: If we took all the effort of creating a fully fletched cache object for HFM, why not keep the body and re-use it for conditional requests? This is #2767
If we wanted to opt for B, we'd probably want to conditionally throw away the body if it's not IMS capable, but I wanted to get the suggestion out before leaving the train.
discussed with @bsdphk
ObjClrFlag()
to clear the IMS flag