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 <[email protected]> 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/[email protected]/ > > To search via a non-Google archive, visit > here:http://www.mail-archive.com/[email protected]/ > > To unsubscribe from this group, send email to > [email protected] -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
