How do I access a page\'s HTTP response headers via JavaScript?
Related to this question, which was modified to ask about accessing two specific HTTP headers.
Using XmlHttpRequest you can pull up the current page and then examine the http headers of the response.
XmlHttpRequest
Best case is to just do a HEAD request and then examine the headers.
HEAD
For some examples of doing this have a look at http://www.jibbering.com/2002/4/httprequest.html
Just my 2 cents.