#Dynamic content doesn't update. It updates after refresh only.

4 messages · Page 1 of 1 (latest)

left herald
#

Hi,

I made a blog in Nuxt with Directus CMS. Now I load my blogposts based on my slug in my Directus CMS.
But when I go from my news overview page to my news slug page and then back to my news overview and then to ANOTHER news slug page. It shows the news item I selected the first time. It doesn't show the right one.
When I refresh I get the good one.

I use npm run generate to static deploy on my server and then upload the dist in my public_html

WARN Using experimental payload extraction for full-static output. You can opt-out by setting experimental.payloadExtraction to false.

How can this be solved? This is my fetch code, see screenshot.

#

Setting a dynamic key, in my case this: