[ui][widgets] Refactor version fingerprinting

This ensure that fingerprint doesn't get encoded as it is
only used to ensure the latest version is served from the cache.
1 job for fix_codemirror_widget_resources_links in 16 minutes and 9 seconds (queued for 5 seconds)