Skip to content

Commit bef2c8e

Browse files
committed
changes
1 parent 8746bdb commit bef2c8e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

content/manuals/build/building/best-practices.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -613,9 +613,10 @@ resources, and a protocol for parsing branches, tags, and subdirectories from
613613

614614
> [!NOTE]
615615
>
616-
> `ADD` redownloads the file every time the image is built to verify the checksum
617-
> and moitor changes to bust the cache whereas the `RUN curl` equivalent only busts
618-
> the cache and redownloads the file when the text content changes
616+
> `ADD` redownloads the file (or uses a HEAD request with [ETag](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag)s
617+
> if the remote server supports it) every time the image is built to verify the checksum
618+
> and monitor changes to bust the cache whereas the `RUN curl` equivalent only busts
619+
> the cache and redownloads the file when the process arguments change
619620
> (e.g. the URL in the curl command is changed).
620621
> This may be significant if the file to be downloaded is large.
621622

0 commit comments

Comments
 (0)