Skip to content

Add force reload (--hard) and clear-cache commands#17

Merged
simonw merged 3 commits into
mainfrom
claude/rodney-cache-investigation-fExqi
Feb 17, 2026
Merged

Add force reload (--hard) and clear-cache commands#17
simonw merged 3 commits into
mainfrom
claude/rodney-cache-investigation-fExqi

Conversation

@simonw
Copy link
Copy Markdown
Owner

@simonw simonw commented Feb 17, 2026

rodney reload --hard uses CDP Page.reload with ignoreCache flag,
equivalent to Shift+Refresh. rodney clear-cache wipes the browser
cache via CDP Network.clearBrowserCache.

https://claude.ai/code/session_01RXfbzr3A15ySqEJsiuYyAS

rodney reload --hard uses CDP Page.reload with ignoreCache flag,
equivalent to Shift+Refresh. rodney clear-cache wipes the browser
cache via CDP Network.clearBrowserCache.

https://claude.ai/code/session_01RXfbzr3A15ySqEJsiuYyAS
Python stdlib HTTP server that serves responses with Cache-Control
headers, plus a Showboat README demonstrating reload --hard and
clear-cache against it.

https://claude.ai/code/session_01RXfbzr3A15ySqEJsiuYyAS
The previous demo used `reload` to show "cached" behavior, but
location.reload() sends conditional requests in headless Chrome even
with a long max-age — so the values always changed, failing to show
the cache working.

Restructured the demo to use navigate-away-and-back instead, which
does respect the disk cache. The sequence now clearly shows:
1. Initial load (values set)
2. Navigate away and back → same values (cache hit)
3. reload --hard → new values (cache bypass)
4. clear-cache + navigate → new values (cache empty)

Also added a note explaining why `rodney reload` doesn't serve from
cache (headless Chrome revalidates on location.reload()).

https://claude.ai/code/session_01RXfbzr3A15ySqEJsiuYyAS
@simonw simonw merged commit c8d3883 into main Feb 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants