bypass for errors
See original GitHub issueI’m using apicache to cache an expense request to an upstream server that sometimes times out. However when the upstream request does timeout, I want to return an error response and not cache it so that the next time I will retry the upstream operation again.
So it’s not clear how to say from my route handler post-apicache middleware, “don’t cache the request this time.” I’ve tried adding apicache.clear(req.url);
in my handler when I return my error response but that doesn’t appear to work.
Issue Analytics
- State:
- Created 9 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Error Management - bypass certain errors - Alteryx Community
Solved: Hi all ! I have a template that runs a .exe that I made to convert pdfs in a folder into .csv....
Read more >Bypass error and continue code - python - Stack Overflow
Show activity on this post. If you want to execute a code block in the case the error does not occur you can...
Read more >How To Fix or Bypass Error 451: Unavailable Due to Legal ...
1. Use a VPN (Virtual Private Network) Using a virtual private network (VPN) can let you bypass the error 451 message by encrypting...
Read more >Error-free and error-prone lesion bypass by human DNA ...
Lesion bypass is an important cellular response to unrepaired DNA damage during replication. Two modes of lesion bypass are known, error-free and error-prone...
Read more >Here's how to bypass SSL errors on your browser
Here's how to bypass SSL errors on your browser ... not rely on you and will give SSL errors even if the certificate...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
it would be great if we could have an option to save in cache only responses with status 200, or add a handler function on the start configuration
See docs and/or Wiki for statusCode caching bypasses. This has been added!