Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Swap the if blocks so that the header becomes optional #54

Conversation

markomitranic
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant