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

Optionally set cache items on POST/PUT #46

Open
jpodwys opened this issue Oct 2, 2016 · 0 comments
Open

Optionally set cache items on POST/PUT #46

jpodwys opened this issue Oct 2, 2016 · 0 comments

Comments

@jpodwys
Copy link
Owner

jpodwys commented Oct 2, 2016

When a response comes back from a POST or a PUT, often all of the new/updated asset's information in known by the client. It could be a nice convenience option to be able to have superagent-cache automatically cache the POST/PUT payload, merged with response.body for the given call, if the call is successful. The cache key would simply need to have some fields replaced before adding it to the cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant