Can’t download latest minimal ISO from USA IP address

The downloads page links to https://channels.nixos.org/nixos-22.05/latest-nixos-minimal-x86_64-linux.iso. When I visit that link in Firefox (from a US east coast IP address), it has me download “nixos-minimal-22.05.615.11e805f9935-x86_64-linux.iso”. When I visit that link in the Tor Browser (from a Dutch exit node, at least at the moment), it has me download “nixos-minimal-22.05.2889.67e45078141-x86_64-linux.iso”.

I know that there’s always going to be some delay between the source of truth being updated and any caches being updated, but Hydra says that the 22.05.615 ISO was generated three months ago. Another ISO image, 22.05.693, was generated on the same day that the 615 one was. I would think that the 693 image or something newer would have made it into the cache at this point.

US East Coast here. For what it’s worth, I get 2889.67e45078141, as expected. Maybe this issue is particularly local for you somehow?

1 Like

I figured out what’s going on here:

$ curl -I https://channels.nixos.org/nixos-22.05/latest-nixos-minimal-x86_64-linux.iso
HTTP/2 301 
location: https://releases.nixos.org/nixos/22.05/nixos-22.05.2991.c7bad05cd7b/nixos-minimal-22.05.2991.c7bad05cd7b-x86_64-linux.iso
[…]

HTTP response code 301 means “Moved Permanently”. At some point, probably 3 months ago, Firefox made an HTTP request to https://channels.nixos.org/nixos-22.05/latest-nixos-minimal-x86_64-linux.iso, and was told “this URL is always going to redirect to https://releases.nixos.org/nixos/22.05/nixos-22.05.615.11e805f9935/nixos-minimal-22.05.615.11e805f9935-x86_64-linux.iso”. Now, Firefox just assumes that the latest ISO link will always redirect to the 615 one.

The latest ISO URL should use a 302 response code to indicate that the redirect destination might change in the future. Users who clicked the link before the response code is changed will still get the old ISO, but that might not be worth fixing. If someone really cares, they can just clear their browser’s cache.

3 Likes