question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable/disable option not working for shared API GW

See original GitHub issue

When using shared API GW, the global configuration apiGatewayCaching.enable and endpoint configuration caching.enable doesn’t work as expected. As long as the cache is enabled for shared API GW, it will be enabled for all individual endpoints in it.

Wondering is those two options designed only for dedicated API GWs? Thanks

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
DianaIonitacommented, Mar 1, 2022

it also means unnecessary overhead in our case since our purpose is just to turn the cache off

True, though it’s uncertain that it would impact the endpoint. It’s a good point though, I’ll try asking AWS support what their thoughts are on the matter. Thanks for raising this!

1reaction
GaaraZhucommented, Feb 27, 2022

Thanks @DianaIonita for such a detailed reply. This is very helpful. Previously we only applied the plugin in the endpoint config not the shared API GW. I’ll have another try and let you know whether it works or not. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enabling CORS for a REST API resource - Amazon API Gateway
Learn what cross-origin resource sharing (CORS) is, whether you want to enable it, and how to enable CORS methods in API Gateway.
Read more >
AWS API Gateway CORS ok for OPTIONS, fail for POST
The problem has been that the API gateway has called my lambda function using the "Lambda Proxy Integration" option checked.
Read more >
AWS API Gateway - enable cross-origin resource sharing
Amazon API Gateway adds support for CORS enabling through a simple button in ... thus setting CORS correctly only for 200 answer (so...
Read more >
How do I resolve a CORS error for my API Gateway REST API?
We appreciate your feedback: https://amazonintna.qualtrics.com/jfe/form/SV_a5xC6bFzTcMv35sSkip directly to the demo: 0:40For more details ...
Read more >
Your Complete API Gateway and CORS Guide
API Gateway is a full-featured serverless option. ... rolled out for WebSocket APIs and is now available for HTTP API but not REST...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found