Skip to content

.tip

· one of the small things

HEAD, when you only need to know it exists

Fetch a 20 MB file just to check it's there and you download 20 MB. HEAD returns the headers and nothing else.

curl -I https://cdn.example.com/build/app.js

You get the same status code, Content-Length and ETag. A health check that sends GET to a heavy endpoint wastes the server's time twice a minute.

http