Hi,
For projects I always add a build-hash to be absolutely shure that users always re-load (instead of using cache) files when a build/version changed. I do this by adding something like ?version=4398469 to the files loaded by the loaders.
Trying to do this with the FileLoader of Threejs this fails though as it strangely cannot find the file when doing so. I’m surprised by that as loading via xhr shouldn’t be an issue with a query string attached. So it looks like Threejs does some extension sniffing/url changing that prevents us from using querystrings.
In PixiJs this is the same, but they added a defaultQueryString
parameter to the loader, like this.loader.defaultQueryString = '?blabla=bladiebla'
.
Looking in the documentation of Loader and FileLoader I don’t see anything like that in Threejs. Is there some other way to add a querystring to the urls of the FileLoader?
Thanks in advance