Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Saving an `ArrayBuffer` with `defineCachedEventHandler` & NuxtHub cache - Nuxt
N
Nuxt
•
15mo ago
•
5 replies
bryce
Saving an `ArrayBuffer` with `defineCachedEventHandler` & NuxtHub cache
I
'm trying to return an ArrayBuffer
(with an image
) from my cached event handler
.
This is working correctly with a regular handler
, but with caching it returns
{}
{}
, presumably because
useStorage.set
useStorage.set
is used in cached functions instead of experimental
setItemRaw
setItemRaw
.
Is there any way around this
?
I thought of declaring a custom storage provider which only handles array buffers
, but if I override the
cache
cache
storage driver I
'll override it for all of them
?
I suppose I could wrap the NuxtHub cache driver
, and detect ArrayBuffers with some more complex serialization but this seems very complicated
?
Nuxt
Join
Nuxt Community Chat Server
31,686
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How do I purge cache defineCachedEventHandler
N
Nuxt / ❓・help
11mo ago
Nuxthub with Cloudflare Pages
N
Nuxt / ❓・help
2y ago
defineCachedEventHandler strips out headers
N
Nuxt / ❓・help
12mo ago
Websockets with NuxtHub and Cloudflare Workers
N
Nuxt / ❓・help
3mo ago