Review main Ready for review

97850[BUGFIX] Disable caching when a content object exception is handled

Benni Mack CR 0 V 0 Easy +37 −0 updated 11/19/26, 19:56

Commit message

When the content object exception handler catches an exception, it
replaces the output with an error message. The page was still cached
and sent with regular client cache headers, so a CDN or proxy could
keep the broken page until the next manual purge.

Handling such an exception now disables caching for the request. The
page is no longer stored in the page cache, the stdWrap cache is
skipped and the response is sent with "Cache-Control: private,
no-store".

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 1
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/50/97850/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/50/97850/1 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote
    • core-ci +1 CI

Merge conflicts 9

Issues 1

Files 2

Review log 23

  1. Benni Mack uploaded patch set 1 11/19/26, 16:59

  2. core-ci voted on patch set 1 V +1 11/19/26, 17:06 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115030

  3. Georg Ringer commented on patch set 1 11/19/26, 17:09

    ContentObjectRenderer.php:667 Unresolved

    can we add exception message + code at least?