Skip to content

feature/https: URL→digest cache index for true zero-network repeat fetches #9

Open

Description

@bilby91

HTTPS feature cache today is content-addressed by sha256 of the body. To compute the digest we re-download the tarball on every Fetch call; only the extract step is cached (skipped if <cache>/https/sha256-<hex>/extracted/devcontainer-feature.json exists).

Plan

Add an <cache>/https/index.json mapping URL → {digest, fetchedAt, ttl}. On Fetch, look up by URL first, validate the cached digest's extracted dir, and skip the download entirely on hit. Honor a default TTL (e.g. 24h) so we still re-pull occasionally for security; configurable via DiskStoreOptions.HTTPSCacheTTL.

Why

For DAP-style hot paths and CI, network round-trips on cached features are wasted seconds. Documented limitation in design/features.md §8 / current code in feature/https.go.

Activity

  1. added this to the v0.1.0 milestone on May 7, 2026
  2. added
    enhancementNew feature or request
    area/featureFeature pipeline (resolution, build, metadata)
    on May 7, 2026
  3. removed this from the v0.1.0 milestone on May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/featureFeature pipeline (resolution, build, metadata)enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions