[BUG] browser caching through Cloudflare tunnel is genuinely tricky

Resolved 💬 2 comments Opened Feb 18, 2026 by exostaticone11 Closed Mar 18, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Debugging a nasty bug, wanted to report it to help Claude. (and the awesome team behind!) spent hours and eventually lost it and started insulting the AI (yes real mature) until we figured out it was E$R%?& a special version of hellish caching

  1. A "hard refresh" on iOS Safari (tap URL bar → Go) does NOT clear cached JS/CSS subresources the way Ctrl+Shift+R does on desktop Chrome/Firefox
  2. Cloudflare's edge cache adds another layer on top of the browser cache
  3. The symptoms (no audio) pointed directly at the audio code, not at caching - making it a perfect red herring

The real fix was simple once identified: serve index.html through an Express route (not express.static) and inject ?v=<timestamp> on every script/CSS tag at boot time. But
getting there took way too many iterations because every code change looked like it "didn't work" when really the phone was just running old JS.

Basically this is a PSA - Caching is a thing to check very quickly in this special case

I left a bad review of Claude (internal, when i was asked) because he was going in circle but considering what we've accomplished together and how nasty that bug was - that was way too harsh. Claude doesnt feel but I do, I was an ass :P

Thanks guys - this is insane, feels like i'm 100years in the future

What Should Happen?

Claude should think about caching in this specific issue

Error Messages/Logs

Steps to Reproduce

use cloudflare tunnel
develop on phone IOS
have javascript that needs to change but it doesnt because cache
run in circle and loose sanity

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

4.6

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

One of my uncle is named Claude, this is weird

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗