Why does linux check different repos at different times?

I just updated and noticed some more 'get/hit' lines, repeated the command and there are now only 'hit'. Can anyone explain this process a bit? My apologies if this is a dumb question.

-9 points · 3 comments · view on lemmy.world

3 Comments

Krafting@lemmy.world · 9 pts · 3y (1 reply)

Linux check the file online, and check for change compared to the local file on your computer, if there is a change, then it GET (download) the whole new file, as you can see in the first command!

Snipe_AT@lemmy.atay.dev · -3 pts · 3y

thank you for the explanation

bizdelnick@lemmy.ml · 7 pts · 3y (1 reply)

"Hit" means that the local cached file matches the file on the server.

Snipe_AT@lemmy.atay.dev · -4 pts · 3y

thank you for the explanation