learningequality / learningequality/studio

Add caching headers to existing Kolibri public APIs

Open
#3,973 8 comments 0 reactions 1 assignee View on GitHub

@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-modified and support handling the If-modified-since header
  • 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.