From 630ae1df1d50cb6d1856bffdac27fb91c659e9f7 Mon Sep 17 00:00:00 2001 From: Julien Nahum Date: Thu, 11 Jan 2024 09:48:57 +0100 Subject: [PATCH] image optimization caching + fix hydratation issue form template page --- .../open/forms/OpenCompleteForm.vue | 14 +++--- client/nuxt.config.ts | 5 +- client/pages/templates/[slug].vue | 50 +++++++++---------- 3 files changed, 37 insertions(+), 32 deletions(-) diff --git a/client/components/open/forms/OpenCompleteForm.vue b/client/components/open/forms/OpenCompleteForm.vue index 5934f86..4d54b4f 100644 --- a/client/components/open/forms/OpenCompleteForm.vue +++ b/client/components/open/forms/OpenCompleteForm.vue @@ -62,10 +62,8 @@ mode="out-in" >
-

+

Powered by OpnForm + > + Powered by OpnForm +

diff --git a/client/nuxt.config.ts b/client/nuxt.config.ts index ed137a1..1f96e39 100644 --- a/client/nuxt.config.ts +++ b/client/nuxt.config.ts @@ -51,9 +51,12 @@ export default defineNuxtConfig({ ], nitro: { awsAmplify: { + imageOptimization: { + cacheControl: "public, max-age=600, immutable" // 10 minutes + }, imageSettings: { + formats: ['image/webp'], dangerouslyAllowSVG: true, - minumumCacheTTL: 120 } } }, diff --git a/client/pages/templates/[slug].vue b/client/pages/templates/[slug].vue index 00c9bf2..8936240 100644 --- a/client/pages/templates/[slug].vue +++ b/client/pages/templates/[slug].vue @@ -1,28 +1,28 @@