ServicePattern / MobileAPI_Android

Messaging API library and example for Android mobile platform
1 stars 1 forks source link

Bugfix/cache control #35

Closed ALobastov closed 3 years ago

ALobastov commented 3 years ago

Changes:

  1. Added Cache-Control:no-cache to all HTTP requests. To avoid nginx caching (https://github.com/ServicePattern/MobileAPI_Android/issues/34). We will ask customer to disable caching on the server side, but still need to be prepared for this
  2. Even with nginx cache eliminated, it seems Volley is caching the requests locally using plain URL as the key. As result, event polling requests (same URL) repeatedly returns the last response from the local cache. To overcome this, extra URL parameter is added (nonce)
  3. Added logging of complete HTTP requests/responses, including headers
  4. Fixed issue with double polling on double startPolling() call