Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
other
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Nov 2025 at 09:39 UTC
Updated:
15 Mar 2026 at 14:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
arousseau commentedComment #4
arousseau commentedComment #5
smustgrave commentedPossible to get a test case showing the problem please
Comment #6
arousseau commentedI added tests + fixed the case where an exception occurs, while fetching the resource. The max age in that case was permanent, and now is zero as intended.
Comment #7
smustgrave commentedGoing to leave in review but think there has to be a different way to get those tags. If we add a new setting or a contrib does this list will have to be managed and updated each time.
Comment #8
arousseau commentedI added the settings config object as cacheable dependency (which adds the
config:media.settingscache tag to the response).So the response should be invalidated when the config is updated.
I switched to cacheable bad request exceptions, to make use of the cacheability metadata.
Preprocess allows additional cacheability metadata to be provided by other modules see (
\Drupal\media_test_oembed\Hook\MediaTestOembedThemeHooks::preprocessMediaOembedIframe())Pipeline is failing, possibly linked to #3557585: Update to Composer 2.9.2
Comment #9
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #11
jonhattanRebased. Tests are now passing.
Comment #13
smustgrave commentedBelieve my original concerns were addressed.
Comment #16
longwaveCommitted and pushed 867a3c069c9 to main and 3186130d308 to 11.x. Thanks!
Did not backport cleanly to 11.3.x or 10.6.x; not sure this is worth backporting there but if anyone feels strongly then please open backport MRs.