Menu

1 / 3

Every URL on My Site Returns 200, Including the Ones That Don't Exist

DEV Community: react·Michael Kaminski·about 6 hours ago
#74RQr42P
#devtoreact#devto#dev#test#something
Long article (732 words) — no AI summary yet.
Reading 0:00
15s threshold

Originally published on michael-kaminski.io .

Today was cleanup day. Several articles had been written over the past week and never actually reached the site — each one sitting in its own branch that quietly never merged. Recovering the text was the easy part: it was all still there, nothing had been deleted, and putting it back was an exercise in careful copying.

Proving it had actually gone live turned out to be the genuinely interesting problem.

The test that always passes

My first instinct was the obvious one. Ask the site. Request the URL of a previously-missing article, look at the status code, and let HTTP answer the question: 200 means it's there, 404 means it isn't.

Every path I asked about returned 200. Including several I invented on the spot.

This isn't a bug. It's the single-page-app bargain, and I configured it myself years ago.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.