Review main Merged

70885[TASK] Send debug information of cached page as HTTP Header

Benni Mack CR +2 V +2 Easy +20 −3 updated 09/06/21, 11:21

Commit message

If config.debug = 1 is added, and a page is loaded
from cache, TYPO3 usually sent
"<!-- Cached page generated 03-09-21 09:48. Expires 04-09-21 09:48 -->"
at the end of the HTTP Response Body.

This is especially painful when dealing with JSON output,
where this breaks output if TYPO3 should return JSON (e.g.
from a USER function).

This change sends the same information as a HTTP
Response Header named "X-TYPO3-Debug-Cache" including
the same information, and not touching the actual rendering.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 1