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

I want to allow my users to cache the content of a HTTPS incoming web-hock #336

Open
nelson-vendoo opened this issue Nov 21, 2019 · 1 comment

Comments

@nelson-vendoo
Copy link

I have modified the cache-control header on the function but I still am getting a cache-control: no-cache, no-store, must-revalidate from de service

      ...      
      response.setHeader("Content-Type", "application/json");
      response.setHeader("cache-control", "max-age=3600");
      response.setBody(JSON.stringify(result));
      ...
@jsflax
Copy link
Contributor

jsflax commented Jan 2, 2020

I'm not entirely sure what the reasoning for this would be, but if you want to change the way we digest responses, you have to supply your own Transport to the StitchClientConfiguration you pass in when you initialise your app client.

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

2 participants