From 34a65dd01c95e45c09f17c2f8651a0a1887a0331 Mon Sep 17 00:00:00 2001 From: jhnstn Date: Wed, 19 Apr 2023 14:21:54 -0400 Subject: [PATCH] Add embed linkst to disable cache list --- packages/react-native-editor/src/api-fetch-setup.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/react-native-editor/src/api-fetch-setup.js b/packages/react-native-editor/src/api-fetch-setup.js index 6d2f401e04e265..661bff038aff30 100644 --- a/packages/react-native-editor/src/api-fetch-setup.js +++ b/packages/react-native-editor/src/api-fetch-setup.js @@ -17,7 +17,10 @@ const SUPPORTED_ENDPOINTS = { }; // [ONLY ON ANDROID] The requests made to these endpoints won't be cached. -const DISABLED_CACHING_ENDPOINTS = [ /wp\/v2\/(blocks)\/?\d*?.*/i ]; +const DISABLED_CACHING_ENDPOINTS = [ + /wp\/v2\/(blocks)\/?\d*?.*/i, + /oembed\/1\.0\/proxy\?.*/i, +]; const setTimeoutPromise = ( delay ) => new Promise( ( resolve ) => setTimeout( resolve, delay ) );