R
R
retyui2017-07-23 23:43:26
JavaScript
retyui, 2017-07-23 23:43:26

Is it possible to use fetch to find out if a file or its contents has changed, without loading the response body (res) using only headers?

Is it possible to use fetch to find out if a file or its contents has changed without loading the response body (res) using only the headers?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timokins, 2017-07-24
@retyui

To get ONLY the headers using the HEAD method,
you can set the fetch method via the optional options argument .
And they wrote about the desired heading in the next answer . You can also read about all related headings there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question