Search code examples
google-cast

chromecast loading the older version of my receiver app


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.


Solution

  • The Chromecast will cache the receiver if it's currently loaded. It will request a new Receiver if it's at the homescreen.

    You can launch another app on your Chromecast then launch your Receiver again.

    From the command line, you could do something like:

    curl http://<ip of Chromecast>:8008/apps/YouTube
    

    to launch the YouTube Receiver, then you could launch your own again.