Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloudflare_page_rule: handle lists and string values for cache_key_fields #975

Merged
merged 2 commits into from
Mar 3, 2021

Conversation

jacobbednarz
Copy link
Member

The page rule API for defining cache keys allows you to include/exclude
either a list or all of the query parameters. However, to apply the
changes to all, the value sent must be a string, not a list as we've
previously sent (due to reusing []interface{}{"*"}). In the case of
sending exclude = ["*"] it excludes the "*" parameter from the
cache key, not all of the possible keys.

Closes #967

…ields`

The page rule API for defining cache keys allows you to include/exclude
either a list or all of the query parameters. However, to apply the
changes to all, the value sent must be a string, not a list as we've
previously sent (due to reusing `[]interface{}{"*"}`). In the case of
sending `exclude = ["*"]` it excludes the "*" parameter from the
cache key, not all of the possible keys.

Closes #967
@jacobbednarz jacobbednarz force-pushed the handle-cache-key-fields-all-options branch from ab7b841 to a8a428a Compare March 3, 2021 04:00
@jacobbednarz jacobbednarz merged commit 2ebced9 into master Mar 3, 2021
@jacobbednarz jacobbednarz deleted the handle-cache-key-fields-all-options branch March 3, 2021 04:27
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.

custom page rules query_string option "ignore" is not working
1 participant