Figured I would write about this issue on here as I’ve been having this problem since I started making extensions on Twitch but the problem never got fixed.
When testing an extension locally and hosting my assets on a private server the twitch servers keep my assets in their cache for way too long, without giving me any way to clear it manually.
If I load up my channel on my browser to test an extension that is hosted on my server, when I modify the files on my server the changes are not made on Twitch side, even after multiple refreshes of the channel web page and extension the old content still shows in the browser.
To precise, even if I clear the cache locally, on my browser, the old assets are still stored on Twitch side in their cache and the changes on my server files do not appear in the extension, this problem doesn’t occur locally, it is on Twitch servers.
This completely removes the whole point of being able to test assets “locally”, as it is faster to just re-upload my files over and over and test on “hosted” mode. This cache bug forces me to wait more than 5 minutes every time I want to make any changes on my extension and it makes this functionality completely useless.
Test it out yourself:
- Make an extension and host the assets “locally” on a private server (ex. www.myExtensionAssetsServer.com)
- Install and load up the extension on your twitch channel
- Refresh your Twitch channel web page (try it with CTRL+ F5 too to clear the cache if you want)
You’ll see that the web page still loads the old code (or files) of the extension and that the assets modifications you made on your server do not show at all.