views:

1564

answers:

5

What is the following portion of a Gmail URL for?

https://mail.google.com/mail/?**zx**=1efobg68r40co&**shva**=1#inbox

If you change it, nothing happens!!

I know Gmail is not an Open-Source program so we can trace the code. But every website try to make the URL shorter so they ideally shouldn't add redundant data to the URL. At the same time they don't make any difference nor error if they change.

Edit: I know it's a parameter for a scripting language since I'm a PHP developer but as a developer I don't EVER add a useless parameter and I think it's obvious/primitive sense!

+1  A: 

We won't know what it 'exactly' means unless someone inside Google answers your question. But my guess would be that it has to do with security and encryption. Nothing happens when you change it because it is part of the cookie as well. So when you change it they must also compare it with what is set in the cookie.

Omnipresent
+4  A: 

If I'm remembering correctly, back when they were working on the current version of the interface, you could preview it by setting shva=2 instead of the default. That version is now the default and you can't get the old version, so shva does nothing now.

It may be used again in the future, who knows?

But every website try to make the URL shorter so they ideally shouldn't add redundant data to the URL...

This is self-evidently not true. Look at StackOverflow URLs for a perfect example. This post:

http://stackoverflow.com/questions/1692968/shva-in-gmails-url-what-is-this

could just as easily be (it works):

http://stackoverflow.com/questions/1692968

I don't think anyone worries these days about the extra couple bytes of data involved with an extra query string parameter.

ceejayoz
I agree with this.using "shva" specifically might be related to http://en.wikipedia.org/wiki/Shva
Vineyard
The only thing is that `shva-in-gmails-url-what-is-this` isn't redundant.. it serves a very specific purpose, nameley SEO.
Dennis Haarbrink
A: 

Satellite Home Viewer Act

Mileyy
What does that have to do with GMail?
notJim
+5  A: 

The acronym stands for "Should have valid authentication" as noted here:

http://googlesystem.blogspot.com/2010/07/gmails-shva-parameter.html

As others have noted, 1 is the default value.

Ben Gartner
+2  A: 

Some of them saying it is" should have valid Authentication". We shall consider it OK.

But the real expansion of shva is "security host verification and authentication".

It always comes when you open Gmail.

appu