Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
putuoka opened this issue Dec 28, 2022 · 0 comments
Open

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

putuoka opened this issue Dec 28, 2022 · 0 comments

Comments

@putuoka
Copy link

putuoka commented Dec 28, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant