Is it possible for javascript to read the ETAG value of a HTTP response?
Are there any issues in writing out an ETAG value in a HTTP Request to the server?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If it’s a regularly loaded page, I think the HTTP request/response is already complete so Javascript can’t access that information.
If it’s an AJAX call, jQuery has the jqXHR object (documentation here), which says this.
So you can call
getResponseHeader()on the returned object in your success call to parse them out.