When I run multiple times a query with a fetchPolicy set to 'network-only' or 'no-cache', it will execute only 1 server request.
client.query({
fetchPolicy: 'network-only',
query: gql`
query {
me {
id
}
}`
}) .then(result => console.log(result))
When I execute this 3 times, I will see only 1 call to the network in Chrome's Network Tab, my server logs only 1 time, but 3 logs in the client's console.
I checked the request and response HTTP headers to see if there is some incompatibility, but I don't see anything suspicious.
Request headers include:
When I run multiple times a query with a fetchPolicy set to 'network-only' or 'no-cache', it will execute only 1 server request.
When I execute this 3 times, I will see only 1 call to the network in Chrome's Network Tab, my server logs only 1 time, but 3 logs in the client's console.
I checked the request and response HTTP headers to see if there is some incompatibility, but I don't see anything suspicious. Request headers include:
Response headers include:
The status code is 200 OK
Any idea?