Issue Bug Closed

#91889AssetRenderer does not respect FE.versionNumberInFilename

Torben Hansen 07/29/20, 11:57 updated 09/29/20, 15:06

Description

The AssetRenderer for the new AssetCollector in TYPO3 10.4 does not respect the $GLOBALS['TYPO3_CONF_VARS']['FE']['versionNumberInFilename'] setting.

This is a problem, when rendered assets (e.g. JavaScript files) are rendered and cached on the client. When the content of the asset changes server side, the client will not reload the updated asset, since the filename is the same.

We should use GeneralUtility::createVersionNumberedFilename in AssetRenderer::getAbsoluteWebPath() so versioned file names are created.

Reviews 4