node-gcm icon indicating copy to clipboard operation
node-gcm copied to clipboard

If an API key is invalid (response 401) cache that result

Open hypesystem opened this issue 10 years ago • 0 comments

If an API key is invalid, no future requests will respond anything other than 401. That should be cached in the sender (because the sender depends on the API key), so we don't need to make more requests to get that result.

See Checking the validity of an API key in the GCM documentation.

hypesystem avatar Jul 16 '15 10:07 hypesystem