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

Make client API CDN aware #150

Merged
merged 2 commits into from
Aug 31, 2017
Merged

Make client API CDN aware #150

merged 2 commits into from
Aug 31, 2017

Conversation

rexxars
Copy link
Member

@rexxars rexxars commented Aug 30, 2017

This PR will make the client aware of our new API CDN.

If no useCdn option is specified when constructing, a warning is presented to the user (once), prompting them to take a stand and set it to true or false.

Even if a user has set useCdn to true, the client will fall back to using the live API for:

  • Listeners
  • Authenticated requests (tokens, cookies)
  • Mutations
  • Non-data requests

Also snuck in documentation for createOrReplace() / createIfNotExists(), which was missing. Sorry about that.

@rexxars rexxars requested a review from bjoerge August 30, 2017 17:51
Copy link
Member

@bjoerge bjoerge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LVGTM!

@rexxars rexxars merged commit 602ef35 into next Aug 31, 2017
@rexxars rexxars deleted the cdn-aware-client branch August 31, 2017 10:27
@bjoerge bjoerge mentioned this pull request Sep 1, 2017
bjoerge pushed a commit that referenced this pull request Sep 1, 2017
* [client] Make client CDN API aware

* [client] Add documentation for createOrReplace/createIfNotExists methods
rexxars added a commit that referenced this pull request Jan 26, 2022
* [client] Make client CDN API aware

* [client] Add documentation for createOrReplace/createIfNotExists methods
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.

2 participants