Skip to content

Commit

Permalink
Add embed linkst to disable cache list (#49929)
Browse files Browse the repository at this point in the history
Co-authored-by: jhnstn <[email protected]>
  • Loading branch information
jhnstn and jhnstn authored Apr 20, 2023
1 parent 13a093a commit b0d6280
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/react-native-editor/src/api-fetch-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
Expand Down

1 comment on commit b0d6280

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in b0d6280.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4756560868
📝 Reported issues:

Please sign in to comment.