You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE REQUEST] Use ETag in Salt Fileclient for HTTP sources #61270
For any states which can provide a http:// or https:// source file, the file is always downloaded and cached on the minion before a determination can be made whether the file has changed. For large files, this can introduce long wait times in state runs.
Describe the solution you'd like
Ideally, the minion would try to perform a HEAD on the file to get the ETag and compare that to the last cached file if present. If the ETag differs, the file would then be downloaded. Otherwise, the file client would use the cached copy.
Describe alternatives you've considered
/shrug
Additional context
This feature might warrant a gate option in the minion config since it'll fundamentally change the operation of remote web sources for multiple states.
Activity
OrangeDog commentedon Nov 22, 2021
A extra
HEADrequest is unnecessary. Use theIf-None-Matchheader.fixes saltstack#61270 adds etag support for file.managed web sources
fixes #61270 adds etag support for file.managed web sources
fixes saltstack#61270 adds etag support for file.managed web sources