The shouldBypassEdgeCache() method within edge-cache worker requires presence of both request and cached response. In any other case it returns false without using the defaults.
While i do understand the need to support headers, i am not sure that overriding the default will be used at all, or often, especially in the case of wordpress where it is not-at-all trivial to do. Furthermore, i see no edge cases occuring in this way, since we will always force the validation of cookies.
A very small commit here.
The shouldBypassEdgeCache() method within edge-cache worker requires presence of both request and cached response. In any other case it returns false without using the defaults.
While i do understand the need to support headers, i am not sure that overriding the default will be used at all, or often, especially in the case of wordpress where it is not-at-all trivial to do. Furthermore, i see no edge cases occuring in this way, since we will always force the validation of cookies.