Artemiy Davydov
03/18/2022, 8:30 AMFrank
1) About caching functions. (After changing the function, at least 5 minutes must pass, otherwise you will not see the changes)Hmm.. the
Api
construct uses Api Gateway HTTP API. HTTP API does not support caching. Not sure what is caching here.
2) About bypassing circular dependenciesWill do! Opened an issue here https://github.com/serverless-stack/serverless-stack/issues/1549
3) It is necessary to duplicate the CORS headers in the lambda function responseCorrect me if I’m wrong. CORS headers is only required for the
OPTION
request. You shouldn’t need to return CORS headers in ur Lambda functions for GET/PUT/POST/DELETE
requests.Artemiy Davydov
03/18/2022, 9:39 AMaxios.defaults.headers.common["Cache-Control"] = "max-age=0";
Artemiy Davydov
03/18/2022, 9:40 AMArtemiy Davydov
03/18/2022, 9:42 AMcors
property will only be present in preflight, as I understoodAdam Fanello
03/18/2022, 3:14 PM