Code behind https://getainative.com/strangers-saw-each-others-data-auth-bug-postmortem/ before/server.js a small app with three ways to show one user another user's data after/server.js the same app after the fixes shared-cache.js a tiny stand-in for a CDN (follows the basic RFC 9111 shared cache rules) auth-leak.test.js five behaviour tests that run against either version Run it (Node 22 or newer): npm install npm run test:before # 4 of 5 fail npm run test:after # 5 of 5 pass The tests only talk to the app over HTTP, like a user or a CDN would. They know nothing about how the code is written, so you can restructure the app and the tests still tell you whether strangers can see each other's data. This is a demo written for the post. Do not deploy it.