HTTP header for multi language website

Guybrushthepirate

Regular Member
Joined
Dec 23, 2015
Messages
281
Reaction score
169
Hi all,

having a multi language website (URLs are like www.mydomain.com/language/) I am wondering if there is any configuration for the HTTP header which is better than others.

So far I'm using 302 redirects based on language detection and hreflang tags on each page.

Is there something very important that I am missing?

Thanks for helping.
 
Depends, if you're a good boi you should. ;)

Ok... thanks. So, it won't be necessary but its a plus. I understand that hreflang tag is a good enough signal for search engines.

Ok, so there's no magic SEO http header configuration that I should use I guess. Is 302 redirections with hreflang tags (and, to be a good boy, the use of vary header) good enough or can it be improved?
 
With a good boi I mean that after a redirect you would always issue a vary otherwise the outcome is not specified.
 
With a good boi I mean that after a redirect you would always issue a vary otherwise the outcome is not specified.

Uhm... I don't understand this completely. Can you address me to some resource or explain it a little bit more if you have time/will? Thanks
 
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Vary
 
So basically when a user changes something on the server you would like to inform the cache how to response on this for subsequent request.

For example if you're on mobile phone and visited a website and you change the language to "IT" this issues a HTTP 30X to the server who could response with a vary: user-agent and/or Language. By this the cache knows which content it should deliver to someone when it finds a user-agent with the same headers.

If you don't specify a vary header than the outcome is not specified, caches depends on these headers in order to make a decision which content it should serve to a certain user-agent/browser

Uhm... I don't understand this completely. Can you address me to some resource or explain it a little bit more if you have time/will? Thanks
 
So basically when a user changes something on the server you would like to inform the cache how to response on this for subsequent request.

For example if you're on mobile phone and visited a website and you change the language to "IT" this issues a HTTP 30X to the server who could response with a vary: user-agent and/or Language. By this the cache knows which content it should deliver to someone when it finds a user-agent with the same headers.

If you don't specify a vary header than the outcome is not specified, caches depends on these headers in order to make a decision which content it should serve to a certain user-agent/browser

Get it now! Thank you so much for taking some time to help.
 
Back
Top