[feature] Status check for cache.update
See original GitHub issueI noticed cache.update
rules will only apply if request resolves but it would also be helpful if rules applied during a bad status.
async function createItem(type, data) {
var response = await axios.post("/items", data, {
cache: {
update: {
[`item-list-${type}`]: "delete"
}
}
});
return response.data.id;
}
In the case described above, I’m trying to delete cache for GET request with id item-list-x
but there are cases like a status 409 conflict that I would rather it was deleted too.
Something like statusCheck
would help perhaps.
Issue Analytics
- State:
- Created 10 months ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Map cache updates—ArcGIS Server
This setting checks the folders of your cache and creates any tiles that are missing. As with the other update modes, you can...
Read more >Advanced topics on caching in Apollo Client
This article describes special cases and considerations when using the Apollo Client cache. Bypassing the cache. Sometimes you shouldn't use the cache for...
Read more >Sophos Central Server: Update Cache and Message Relay ...
When an Update Cache is available, all devices are configured to update from it and from Sophos. Every time a device updates, the...
Read more >Checking cache | Fastly Help Guides
Follow the steps below to check the cache status of an object using the Fastly web interface: ... Click the Check Cache button....
Read more >Microsoft Connected Cache - Configuration Manager
Windows Update for Business: Windows feature and quality updates. Office Click-to-Run apps: Microsoft 365 Apps and updates. Client apps: ...
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
I see. Thanks for helping me out!
Thanks! I’ll add a section about this on the new docs were doing.