From 06cb80a4c3f372f0ebd01ac9477f84e4a39e76fa Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 21 Aug 2026 20:32:15 +0300 Subject: [PATCH] [AA] Set `maxAge: Infinity` on age assurance cache (#11526) --- src/ageAssurance/data.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ageAssurance/data.tsx b/src/ageAssurance/data.tsx index 807e195a4d..369b9eedd7 100644 --- a/src/ageAssurance/data.tsx +++ b/src/ageAssurance/data.tsx @@ -57,6 +57,13 @@ const persister = createAsyncStoragePersister({ const [, cacheHydrationPromise] = persistQueryClient({ queryClient: qc, persister, + /* + * Device signals are local-only and cannot be recovered without prompting + * the user again, so they must survive the persister's default 24-hour + * expiration. Server-backed queries still use their own stale times and + * refetch normally after hydration. + */ + maxAge: Infinity, }) /*