ArchiveLabs / ArchiveLabs/opds.openlibrary.org

Prefetch and cache languages.json instead of per request

Open
#36 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Description

We can assume that the languages.json file is nearly constant, or updated at most once per week.

Let's not fetch it per request.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the request path that currently fetches languages.json and inspect how its response is used. Confirm the current per-request behavior, then verify that the file is prefetched and reused rather than fetched for every request, with updates no more often than the stated weekly assumption.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.