Forge tunnel / forge deploy cache issues

Hey folks,

Wondering if anyone else is experiencing this too — I’ve been running into a recurring issue when switching between forge deploy and forge tunnel.

To be honest, it’s been a bit of a nightmare. It often claims everything is deployed, but in reality, it’s still serving the old version for a while. The only way I can tell if it’s actually updated is by sneakily injecting a unique marker into each deployment — like a little breadcrumb trail. :upside_down_face:

Switching between deploy and tunnel is just as unpredictable, taking way too much time to settle down and behave. From what I can tell, it seems like Forge might be hanging onto something in its internal cache — not browser cache, but something on the platform side.

Is there a known way to force a cache clear on Forge itself? I couldn’t find anything exposed for devs.

Also, I’ve recently started seeing this error popping up frequently (even though I’ve got no iterations in the backend function), and I’m fairly sure I’m not the only one getting hit by this.

Would love any tips or war stories if you’ve dealt with something similar :folded_hands:

2 Likes

I can confirm that I’ve also often trouble switching between ‘forge deploy’ and ‘forge tunnel’. After ‘forge tunnel’ the site often seems to be stuck in the tunnel version, without a good way to disconnect it.

I the end I often seem to have to do a ‘forge deploy, forge uninstall, forge install’ cycle to get the app in a working state again. But that might be more suspicious folklore from my side. I’ll would need to keep track to know for sure.

2 Likes

exactly ! same here mate :slight_smile:
In terms of developer experience, not the greatest for sure.
We do spend i think hours a day with such miss-matches of versions, really annoying!

I’ve been seeing this regularly too. After stopping the tunnel, the app ends up in a broken state thinking it is still tunneling from my local machine.

Edit: After more than 20 minutes waiting for it to go away, I closed and reopened my browser and it started working again🤷‍♂️

2 Likes

Not gonna lie — even after deploying, you sometimes still get random versions of the app showing up. From what I’ve seen, this only affects the development environment, but it’s unpredictable.

There have been cases where an older or completely different version was served instead of the latest one.

How do I spot it? I manually log the version in the UI component after each deploy (yeah, a bit old-school, but it helps!).

console.log('Deployment version #[version number]');

Honestly, until Forge’s deployment lifecycle becomes more reliable, this little trick gives me some peace of mind.

3 Likes