@dhh <https://twitter.com/#!/dhh/status/136551399981977600> asked the same thing on Twitter, and Brendan Eich<https://twitter.com/#!/BrendanEich/status/136607819091816448>(creator of JavaScript) said this:
no good reason -- I had no time in the old days (apart from document.cookie > and navigator.userAgent), no one followed up. On Thu, Dec 29, 2011 at 5:27 PM, Arlo <arlo.carr...@gmail.com> wrote: > In my case, I am using a reverse proxy (varnish) that servers pages > from cache. I am also using a C library from Maxmind for GeoIP. I am > successfully sending back extra response headers with the visitor's > city, latitude and longitude. Everything is working great, the > requests don't need to go to php or mysql for geo location lookups and > it's really fast. > > I was hoping to grab these headers in JS and use them for a mapping > application. > > It sucks that javascript can't see this information in the response > headers. > > On Dec 29, 2:38 pm, Karuna Sagar Krishna <karunasag...@gmail.com> > wrote: > > Why would you that information on a webpage? > > > > ++ karuna > > From: Arlo > > Sent: 30-12-2011 AM 12:39 > > To: The JSMentors JavaScript Discussion Group > > Subject: [JSMentors] HTTP Response Headers in JS > > Why is it not possible to get HTTP response headers in javascript > > without doing an AJAX call? I would think that if the browser has > > this information it should be readily available in JS, no? > > > > -- > > To view archived discussions from the original JSMentors Mailman list: > > http://www.mail-archive.com/jsment...@jsmentors.com/ > > > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/jsmentors@googlegroups.com/ > > > > To unsubscribe from this group, send email to > > jsmentors+unsubscr...@googlegroups.com > > -- > To view archived discussions from the original JSMentors Mailman list: > http://www.mail-archive.com/jsmentors@jsmentors.com/ > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/jsmentors@googlegroups.com/ > > To unsubscribe from this group, send email to > jsmentors+unsubscr...@googlegroups.com > -- Yahel Carmon Twitter: http://twitter.com/yahelc Facebook: http://facebook.com/yahel LinkedIn: http://www.linkedin.com/in/yahelc -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/jsmentors@jsmentors.com/ To search via a non-Google archive, visit here: http://www.mail-archive.com/jsmentors@googlegroups.com/ To unsubscribe from this group, send email to jsmentors+unsubscr...@googlegroups.com