bkchung / mod-spdy

Automatically exported from code.google.com/p/mod-spdy
0 stars 0 forks source link

Send Alternate-Protocol header for HTTP responses #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
mod_spdy will generally only step in for HTTPS requests.  A browser that 
connects with HTTP can be advised that SPDY is available on another port (e.g. 
443) by sending an Alternate-Protocol header with the response.  We should make 
mod_spdy send this header automatically for HTTP responses (when configured to 
do so).

Original issue reported on code.google.com by mdste...@google.com on 30 Jan 2012 at 2:39

GoogleCodeExporter commented 9 years ago
I think this is more than just "hey there is spdy" header. It should be 
included in HTTP/2.0 or 1.1 as a generic header defined in the standards to 
advertise https support if it is availible (maybe HTTP/2.0 will only be 
availible with SSL, so this is not necessary, depends on the final outcome).

On the other hand, someone may not want to switch to https (because he has 
problems accessing SSL sites) and you can already implement that behaviour by 
detecting http over port 80 on the serverside and sending a code 302 reply with 
a "Location" Header to the https version of the site. (using mod_rewrite this 
is pretty simple)

Original comment by timo.witte on 17 Sep 2012 at 12:08