wp1 icon indicating copy to clipboard operation
wp1 copied to clipboard

Check ZIM file status before redirecting

Open audiodude opened this issue 9 months ago • 1 comments

Inspired by #819

ZIM files on Wasabi storage expire after 2 weeks. In WP1, we measure if it has been 2 weeks since the ZIM was requested and attempt to show a message that "Your ZIM has expired (2 weeks). Please re-request". However this message can be easy to miss.

It would be nice if we pre-fetched the wasabi URL with requests, perhaps only a HEAD request. If the status comes back as 404, we can redirect to frontend page that explains that the ZIM has expired and provides a button for re-requesting it.

audiodude avatar Mar 30 '25 16:03 audiodude

Indeed, that would be IMHO a lot more robust.

kelson42 avatar May 04 '25 11:05 kelson42