infinitered / apisauce

Axios + standardized errors + request/response transforms.
MIT License
2.8k stars 184 forks source link

Do I Need To Set Headers Max-Age? #303

Open putuoka opened 1 year ago

putuoka commented 1 year ago

We have 2 server API endpoint. One for production, one for development. the results from this 2 API is same if we see from postman but when see from apisauce in react native app we facing an issues. The resulted is different only in apisauce point of view. We found that the max-age in server setting affect it. one production server have max-age 3600 and development server max-age 0 so finally we set all server to max-age 0.

Is that normal? How do you solve this? do we need to setHeaders max-age?