ImageBundle icon indicating copy to clipboard operation
ImageBundle copied to clipboard

service 'templating.helper.assets' -> getUrl should set null for version number

Open tomsykes opened this issue 9 years ago • 0 comments

Within the ImageHandling service, the createInstance() method makes a call upon the templating.helper.assets service to getUrl().

Since the thumbnails use hashes for file names, there is no need for cache busting these files, and indeed cache busting them will simply cause an overhead.

public function getUrl($path, $packageName = null, $version = null)

Is there a way to call getUrl and override the version set from config.yml (framework.templating.assets_version) with no version? False? Empty string?

tomsykes avatar Apr 22 '16 13:04 tomsykes