Skip to content

Check ZIM file status before redirecting #825

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
audiodude opened this issue Mar 30, 2025 · 0 comments · May be fixed by #839
Open

Check ZIM file status before redirecting #825

audiodude opened this issue Mar 30, 2025 · 0 comments · May be fixed by #839

Comments

@audiodude
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant