We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c370200 + a6a8306 commit 35897feCopy full SHA for 35897fe
Library/Homebrew/download_strategy.rb
@@ -486,10 +486,10 @@ def fetch(timeout: nil)
486
# The cached location is no longer fresh if either:
487
# - Last-Modified value is newer than the file's timestamp
488
# - Content-Length value is different than the file's size
489
- cached_location_valid = if cached_location_valid
+ if cached_location_valid && !is_redirection
490
newer_last_modified = last_modified && last_modified > cached_location.mtime
491
different_file_size = file_size&.nonzero? && file_size != cached_location.size
492
- !(newer_last_modified || different_file_size)
+ cached_location_valid = !(newer_last_modified || different_file_size)
493
end
494
495
if cached_location_valid
0 commit comments