A
A
Alexey Lebedev2017-02-26 14:52:42
JavaScript
Alexey Lebedev, 2017-02-26 14:52:42

Is it possible to find out the headers when loading a JS script?

var script = document.createElement('script');
script.src = "https://code.jquery.com/jquery.js";
document.documentElement.appendChild(script);

I ship like this. I'm interested to know the response headers of the script being loaded:
date:Sun, 26 Feb 2017 00:00:00 GMT
etag:"хххх"
status:200
Is there any way to get this data.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
raner134, 2017-11-09
@raner134

Everything. ([^\/]+)(?=\.(?!.*\.))[^'\)\/)]*

Y
Yuuki Wesp, 2017-11-12
@AnotherAltr

https://uiregex.com/ru

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question