Open 403-Fruit opened 3 years ago
This may need an Editor component too 🤔
As a temporary workaround, you can monkey patch the function in the PlayCanvas project so that the hash is not added or post process the config.json file and remove the hashes.
Description
Asset files are loaded with a URL parameter (
?t=...
), added by theAsset.getFileUrl
function. Here's the relevant code, from src/asset/asset.js:There doesn't appear to be any way to disable this. This can cause issues in a lot of configurations (CDNs, service workers, etc), and can make it very difficult to set up specific caching behaviors for production. It also produces a lot of noise in server/devtools logs.
It would be great if we could get a configuration option (maybe in
__settings__.js
?) to disable this.