Published responses cached regardless of caching settings #952
Labels
pending-author
[Issue] Awaiting further information or action from the issue author
pending-triage
[Issue] Ticket is pending to be prioritised
Describe the issue you're facing
Responses from the Storyblok API are cached when retrieving published content, even when
apiOptions
contains a cache type ofnone
.Reproduction
https://stackblitz.com/edit/withastro-astro-971qsd?file=.env
Steps to reproduce
Using Astro in SSR mode via
output: 'server'
and theNode
adapter inmode: standalone
, responses from the Storyblok API are cached when retrieving published content, even whenapiOptions
contains a cache type ofnone
.For example, the following call via
useStoryblok()
will return the cached response, not reflecting any updated (published) content:I've also tested with the settings as in
playground-ssr
in the repo, which has the following settings:This produced the same result.
However, if the exact same
useStoryblok()
call is set to retrieve drafts, everything updates when the page is refreshed, including draft and published content:There appears to be a closed and merged PR from three weeks ago in the storyblok-js-client repo but for whatever reason, this doesn't seem to have fixed the issue in the Storyblok Astro SDK.
Tested with the latest release (
v5.0.2
) of@storyblok/astro
, which appears to contain the latest release ofstoryblok/storyblok-js-client
from looking at the version installed innode_modules
.System Info
Used Package Manager
npm
Error logs (Optional)
No response
Validations
The text was updated successfully, but these errors were encountered: