Skip to content

Conversation

@thomazz-nl
Copy link

I've separated the actions for adding and modifying cookies to allow users to have a choice to either:

  • only add a cookie to the header if there is no cookie header or the specific cookie key is not present.
  • only modify a cookie in the header if it already exists.
  • if a user wants to be sure of both, they can simply add 2 rules: add a cookie in case it doesn't exist (rule 1) and modify a cookie if it is already present (rule 2).

It allows more granular control over cookies.

Actions are separated to allow users to have a choice to either:
- only add a cookie to the header if it does not exist yet.
- only modify a cookie in the header if it exists.
- add a cookie if it doesn't exist (rule 1) and modify a cookie if it exists (rule 2).

It allows more control over cookies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant