V
V
Vladimir Mukovoz2017-08-02 01:10:51
Bootstrap
Vladimir Mukovoz, 2017-08-02 01:10:51

How to request Last-Modified header via JS?

I need to read the value of the Last-Modified header and push it into a variable so that I can then compare it with the date header of the current page (is it already open or will I have to open it again to read it?). Which also needs to be accounted for. Can you tell me how to count them?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2017-08-02
@castomi

1. document.lastModified
2. XMLHttpRequest.getResponseHeader()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question