Add support to invalidate / purge CDN caches

Open
#1,889 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
java

Research direction

Start by reading the /vscode/gallery/<namespace>/<extension>/latest endpoint and the extension publication flow mentioned in the issue. Determine which cached responses become stale when a version is published and what CDN purge mechanism the application should support. Done means the application can instruct a CDN to invalidate the relevant caches while retaining appropriate cache-control behavior.

Written by the indexing model from the issue text.

Description

Open VSX does a lot of internal caching already, however when putting a CDN in front of the application the application needs a way to instruct the CDN provider to purge relevant caches i.e. when a new extension version is published.

This would allow to do even more aggressive caching, e.g. the /vscode/gallery/<namespace>/<extension>/latest endpoint

Right now, endpoints that potentially return dynamic data have explicit cache control headers no-cache to prevent that stale data is returned.

Dominant language
Java
Stars
2.1k
Forks
362
Avg merge
1d 3h
Merged PRs (30d)
44

Getting set up

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.

More from eclipse-openvsx/openvsx

All issues in eclipse-openvsx/openvsx

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.