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?
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?