Browser shows stale content after re-running mdview with different file #14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Bug
Lineage
Standalone -- discovered during session while testing mdview from ~/macbook-ssh.
Repo
ldraney/mdviewWhat Broke
Re-running
mdviewwith a different file kills the old server and starts a new one correctly, but the browser shows the previously rendered file. Two causes: Turbo Drive caches the page at/and serves a stale snapshot, and missingCache-Controlheaders let the browser serve from disk cache.Additionally, puma binds to
127.0.0.1(Railsserverdefault overrides puma.rb'sbind "tcp://0.0.0.0:...") making it unreachable from the k8s nginx reverse proxy via Tailscale IP.Repro Steps
mdview ~/project-a/README.mdlocalhost:3137ormdview.tail5b443a.ts.netmdview ~/project-b/README.mdExpected Behavior
Browser shows project-b's README after step 4, both on localhost and via the Tailscale Funnel URL.
Environment
78918ecAcceptance Criteria
Cache-Control: no-storeheader on all responses<meta name="turbo-cache-control" content="no-cache">in layout0.0.0.0:3137(reachable from Tailscale network)Related
ldraney/pal-e-deployments-- companion fix to swap Docker app for nginx proxy