This repository was archived by the owner on Jul 9, 2026. It is now read-only.
Repository navigation
Prevent caching of video endpoint on Android - #5710
Merged
Merged
Conversation
The new endpoint `/rest\/v1.1\/videos.*/i` has been added via the 'native.disabled_caching_endpoints' filter. This means that any requests made to this endpoint will not be cached on Android.
video endpoint on Android
SiobhyB
marked this pull request as ready for review
May 1, 2023 11:09
fluiddot
approved these changes
May 3, 2023
fluiddot
left a comment
Contributor
There was a problem hiding this comment.
LGTM 🎊 !
I confirmed that updates to title and description settings remain and don't reset after saving and opening a post.
|
Wanna run full suite of Android and iOS UI tests? Click here and 'Approve' CI job! |
SiobhyB
enabled auto-merge
May 4, 2023 16:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
gutenberg: [RNMobile] Extend non-cached endpoints on Android WordPress/gutenberg#50216Description
As outlined in WordPress/gutenberg#50216, a new filter,
native.disabled_caching_endpoints, has been introduced that can dynamically extend the list of endpoints that shouldn't be cached on Android devices.This PR utilises that changes in order to add the
/rest\/v1.1\/videos.*/iendpoint to theDISABLED_CACHING_ENDPOINTS. This means any requests made to this endpoint will not be cached, which fixes the issue described here with VideoPress settings being reset on Android.Note, support for the
/rest\/v1.1\/videos.*/iendpoint was added in #5652 and it's currently only used for VideoPress requests, as such no regressions are expected to emerge from this change.Testing
PR submission checklist: