Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#65046 - Arch Linux Archive returns improper 302 redirect responses

Attached to Project: Arch Linux
Opened by Andrei Pozolotin (random-archer) - Saturday, 04 January 2020, 17:21 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Friday, 30 December 2022, 08:13 GMT
Task Type Bug Report
Category Web Sites
Status Assigned
Assigned To Jelle van der Waa (jelly)
Sven-Hendrik Haase (Svenstaro)
Kristian (klausenbusk)
Levente Polyak (anthraxx)
Giancarlo Razzolini (grazzolini)
freswa (frederik)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No

Details

1. Arch Linux Archive:
https://wiki.archlinux.org/index.php/Arch_Linux_Archive
returns improper 302 redirect responses,
which has no "Expires" or "Cache-Control" headers,
and which therefore can not be properly cached by squid,
consequently resulting in repeated needless hits on the archive server

2. the problem is confirmed by squid developers:
http://lists.squid-cache.org/pipermail/squid-users/2020-January/021586.html
http://lists.squid-cache.org/pipermail/squid-users/2020-January/021587.html
http://lists.squid-cache.org/pipermail/squid-users/2020-January/021592.html

3. the solution is to add standard HTTP "Expires" and/or "Cache-Control" headers
when generating responses for repository requests:
https://archive.archlinux.org/repos/*
This task depends upon

Comment by Sven-Hendrik Haase (Svenstaro) - Wednesday, 12 February 2020, 11:41 GMT
I have no idea about the archive but I added some people who might know.
Comment by Sven-Hendrik Haase (Svenstaro) - Friday, 30 December 2022, 08:13 GMT
Can you guys check this one out please?
Comment by Evangelos Foutras (foutrelis) - Friday, 30 December 2022, 16:18 GMT
Regardless of what we do, archive.org's redirect will still be uncacheable (unless I'm missing something). Therefore, we might as well leave it as-is for consistency. :)

Loading...