foxyfox Posted May 25, 2021 Share Posted May 25, 2021 During development, I'd like to Pixi Loader to always load latest spritesheet images and ignore cached files. I can do this to other assets like JS files by adding Date.now() to the end of the URL. But for spritesheets Pixi Loader takes JSON and then automatically loads whatever image file in the JSON. How can I do this? Quote Link to comment Share on other sites More sharing options...
Saqirm Posted May 25, 2021 Share Posted May 25, 2021 7 hours ago, foxyfox said: During development, I'd like to Pixi Loader to always load latest spritesheet images and ignore cached files. I can do this to other assets like JS files by adding Date.now() to the end of the URL. But for spritesheets Pixi Loader takes JSON and then automatically loads whatever image file in the JSON. How can I do this? You can simply clear cache before adding new source to load. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted May 25, 2021 Share Posted May 25, 2021 Something like that? loader.defaultQueryString=Date.now()+""; Quote Link to comment Share on other sites More sharing options...
foxyfox Posted May 25, 2021 Author Share Posted May 25, 2021 Ivan, that is PERFECT! Thank you so much for the help! Saqirm, I don't want to clear browser cache because that will delete all cache (including some data I need). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.