When I launch my receiver app on the chromecast device, it goes to the URL where my html is hosted to retrieve the receiver app to launch it.
However, when I update the contents of the HTML and JS sources on the hosted server and close the app on the chromecast, and relaunch the receiver app again, I often get the old version of the app and not the updated version that's already on the server.
I think this has to be some cache issue. I've disabled cache via the developer tools via the debugging port (9222), rebooted by device, created a cache manifest that tells it to cache nothing, it still wouldn't work, everytime I launch the receiver app on the device, it continually pulls the old version of the app from the URL.
Does anyone has any tips or solutions as to how I may force the chromecast to pull the latest version already on the hosted server?
thanks! :)
just a follow-up, when doing a curl on the command line, i'll always get the latest version. Just that the chromecast device keeps on getting the older version.
Open the DEBUG (javascript ) console http:// your chromecast ip:9222/
on Chrome browser while your receiver is visible.
Then enter the command window.location.reload(true);
in the bottom of the console. This works every time I've tried it. It is also a good way to test broken session handling in your app as the refresh breaks any connections the page had setup. So it isn't perfect, but it will get the new content loaded.
You may also try adding
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
to your receiver page. In cases that I ran into this issues, rebooting the chromecast device had always cleared the cache.
HTH, Ali
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With