awslabs / awslabs/aws-mobile-appsync-sdk-android
Disabling cache not working in Appsync / appollo
- Dominant language
- Java
- Stars
- 106
- Forks
- 56
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Setting the ResponseFecther policy to NETWORK_ONLY still returns cached data
**To Reproduce**
Steps to reproduce the behavior:
1. Create a AWSAppSyncClient
2. Call a request adding query.responseFetcher(AppSyncResponseFetchers.CACHE_AND_NETWORK)
3. Make sure that the response has changed after
4. Call again request adding
query.responseFetcher(AppSyncResponseFetchers.NETWORK_ONLY)
5. Check that the response is the previous one.
**Expected behavior**
Appsync should not cache any date if the responseFetcher has AppSyncResponseFetchers.NETWORK_ONLY
Contributor guide
Research direction
Start by reproducing the behavior with AWSAppSyncClient and the query.responseFetcher entry points described in the report, comparing CACHE_AND_NETWORK with NETWORK_ONLY after the server response changes. Trace the response-fetching and cache path to determine why NETWORK_ONLY returns the previous response. Done means a NETWORK_ONLY request returns fresh network data without using the cached result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, aws, graphql, java
- Domain
- api, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100