Issue Task Under Review Orphaned

#98481Hash package version into public resource paths

Benjamin Franzke 09/30/22, 12:43 updated 09/30/22, 14:08

Description

This applies to installations in TYPO3 composer mode using
typo3/cms-composer-installers v4 where TYPO3 extensions
are stored in vendor/ and their public resources as linked
to public/_assets/.

The symlink name in public/_assets/ should be extended to be not
just a hash of the relative path to the vendor folder, but also
acts as a cacheHash, by including the package version into the
symlink name.

That means an extension update of packages/extensions
will trigger a new symlink name.
This has the drawback that that names in public/_assets/ are
no longer predictable, but brings the benifit that this will allow
TYPO3 to skip modification-timstamp-lookups in
GeneralUtility::createVersionNumberedFilename() and to generate
performant JavaScript importmaps via trailing slashes1 syntax.

Reviews 3

History 14