"Last-modified header missing -- time-stamps turned off." after trying to wget from a server

Viewed 19

Following this manual, I'm trying to wget only the files that have been changed after the last wget.

After executing wget -S *link to server* the file is downloaded, but the timestamp of the file is the one from the local system, rather than that of the machine(by using ls -l as you can imagine)

And, when I execute wget -N *link to server*, the file gets downloaded(regardless of it not having any chances made to it) and at the end of the output of the command is the following line: Last-modified header missing -- time-stamps turned off.

My question is: Why does the timestamping not work? How do I resolve that warning?

1 Answers

Why does the timestamping not work?

Server fails to deliver Last-Modified response headers, which is required for Time-Stamping

Note that time-stamping will only work for files for which the server gives a timestamp. For HTTP, this depends on getting a Last-Modified header.(...)

How do I resolve that warning?

As explained in order to make it work you would need to alter server in giving said response headers, otherwise to avoid outputing warning, just do not use -N option.

Related