From f9651c89be267b869dfdab050c4586619a04e8c4 Mon Sep 17 00:00:00 2001 From: Dylan Kelly Date: Fri, 27 Oct 2023 11:50:04 +1100 Subject: [PATCH] fix(@dpc-sdp/nuxt-ripple): :bug: ensure route caching works in cdn environment --- packages/nuxt-ripple/composables/use-tide-page.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt-ripple/composables/use-tide-page.ts b/packages/nuxt-ripple/composables/use-tide-page.ts index 22315c3a04..95d32f6cb8 100644 --- a/packages/nuxt-ripple/composables/use-tide-page.ts +++ b/packages/nuxt-ripple/composables/use-tide-page.ts @@ -84,7 +84,7 @@ export const useTidePage = async ( async onResponse({ response }) { sectionCacheTags = response.headers.get('section-cache-tags') - if (response.ok && response._data) { + if (!process.server && response.ok && response._data) { response._data['_fetched'] = Date.now() } }