Skip to content

Comment on Google finally has a 404 page that isn't uglyparent

Comments

`//www.google.com` will automatically translate the url to http/https depending on the requested protocol.

Yup, that way of doing it is protocol-agnostic.

is this officially accepted syntax? does it work in all browsers? (I'd really love both these answers to be yes so I can start doing this on my sites)

Which is interesting since Google doesn't serve a 404 over HTTPS as far as I can tell.

But they're clearly doing their best to minimise file size, and so using // cuts down on a few characters.

Well maybe they will...?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.