denoland / denoland/deploy_feedback
[KV Feedback]: Entry value doesn't seem to be able contain Response object
- Dominant language
- No language data
- Stars
- 79
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
### 🔍
- [x] Did you search for existing issues?
### Type of feedback
General feedback
### Description
Since Web Cache API isn't available on Deno Deploy, I used DenoKV to mimic the cache system. In cache, it is encourage to pass the whole response to cache value. However, it is not the case in DenoKV. When I attempted to pass a Response object to KV like this `kv.put([keys], res.clone())`, it will convert Response to an empty plain object `{}`.
I wonder if it is the design. If so, I think we should be clear in the document rather than left generic `` type.
### Steps to reproduce (if applicable)
_No response_
### Expected behavior (if applicable)
_No response_
### Possible solution (if applicable)
_No response_
### Additional context
_No response_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the DenoKV value-serialization documentation and the behavior of kv.put([keys], res.clone()) described in the report. Confirm how Response values are handled, then document the supported value expectations and whether the generic wording is misleading; done when the limitation and usage guidance are clear.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- deno
- Domain
- databases
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100