learningequality / learningequality/studio
Add caching headers to existing Kolibri public APIs
Open
@ozer550 is already working on this.
Since Mar 29, 2023.
DEV: backend
P1 - important
TAG: performance
- Dominant language
- Python
- Stars
- 191
- Forks
- 307
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 10
Description
Background
We're adding new V2 APIs from Kolibri to Studio, and we're adding Cloudflare page rules to make sure that we can obtain optimal caching of the API responses
Desired behavior
The existing /api/public endpoints:
- should return an appropriate
Last-modifiedand support handling theIf-modified-sinceheader - should return cache control headers:
Cache-control: public, stale-while-revalidate=100, max-age=300
Current behavior
These endpoints do not return or support caching
Value add
Better edge caching through Cloudflare, meaning better worldwide browsing of public channels through Kolibri.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.