What time and identification do the last-modifield and etag in the http cache refer to?

as above, for example, if I upload files locally to the server, do last-modifield and etag mean that if my local files are modified, will there be a new last-modifield and etag, or will a new one be generated only if there are changes in the server files?

because I have tried it myself, upload the same file, and the second time I request a resource, I will return a 200 status code

Jul.04,2021

clipboard.png

the above picture is what I combed before, but there is no actual experiment on the client or the server

Menu