Issue Bug Closed

#102527Prevent workspace preview ?ADMCMD_prev from cach

Marc Hirdes 11/27/23, 12:30 updated 11/13/26, 18:19

Description

URLs with ?ADMCMD_prev parameter should not be cached.

To reproduce:
1. Make sure caching is activated.
2. Clear the cache.
3. In the draft environment make some changes on an already existing page e.g. edit a text.
4. Create a preview link like …./?ADMCMD_prev….
5. Call the preview link with a browser where you are not logged into TYPO3.
6. Call the URL with another browser where you are also not logged in without the ?ADMCMD_prev parameter – You will get the Workspace version, not the live version.

I’ve tested this also with TYPO3 Version 10 where it worked as it should, in 12.4.8 not.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 5

  1. Benni Mack commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2026-11-09T18:24:43+00:00" > 11/09/26, 18:24 </span>

    Re-checked on main (v15): could not reproduce. A request with a valid ADMCMD_prev link sets the frontend.preview aspect, which disables the page cache. A following request without the parameter from a different browser gets the live content (verified with a functional test).

    Two possible explanations for what you saw:
    • Content cached via stdWrap.cache / cache.key was written during preview. Fixed by #110602.
    • A cache outside TYPO3 (reverse proxy, staticfilecache) stored the preview response.

    If you still see this on a current version without such a layer, please add your TypoScript cache configuration. Otherwise we’ll close this.