chris
chris

Reputation: 37480

Does having a space char in a URI affect performance?

I know that modern browsers will allow URIs with spaces in them, and I imagine that there's some encoding/decoding going on that might not be there otherwise.

Are there any material performance impacts that can be attributed to having spaces in a URI?

Upvotes: 0

Views: 95

Answers (1)

700 Software
700 Software

Reputation: 87863

As far as I know, browsers convert space to %20 so the server will not notice. In fact, in Firefox if you copy a URL that has spaces from the address bar it will be converted to %20.

Also, I think this is not worth pursuing. It would be really hard to measure the performance impact and it seems to be a really tiny part of the load anyway.

Also, the load would be on the PCs,,, not on your servers.

I (as a programmer writing code or links) would type %20 because it is safer (less likely to fail) and closer to what actually happens.

Upvotes: 1

Related Questions