lochmueller / staticfilecache

🚀 Fastest TYPO3 Extension ever 🚀
https://packagist.org/packages/lochmueller/staticfilecache
GNU General Public License v3.0
117 stars 65 forks source link

Workspace Preview not working #395

Closed markusa86 closed 1 year ago

markusa86 commented 1 year ago

Bug Report

If I send a workspace Preview link to an user, staticfilecache ignores the cookie "ADMCMD_prev". The user gets the cached value instead of uncached version. TYPO3 sets this cookie to get the workspace version on the whole website, if a user navigate on the website.

Middleware and htaccess. In htaccess only the Rule: RewriteCond %{HTTP_COOKIE} !ADMCMD_prev [NC] is missing after RewriteCond %{HTTP_COOKIE} !staticfilecache [NC]

Environment

Regards, Markus

lochmueller commented 1 year ago

Hey @markusa86 , I checked the core and there is no "ADMCMD_prev" cookie that is used or set by the core. I think it is only a query parameter and Query parameter result in a skipped StaticFileCache. Regards, Tim

markusa86 commented 1 year ago

Hey @lochmueller, see here :) * - evaluate ADMCMD_prev as GET parameter or from a cookie

TYPO3 sets the cookie only in preview Mode.

lochmueller commented 1 year ago

Hey @markusa86 good point. I add this to the htaccess file example/documentation. Thank you, Tim