Skip to content

Caching issues return old package versions #1612

@tbradsha

Description

@tbradsha

When accessing various package metadata (e.g. https://repo.packagist.org/p2/automattic/jetpack-autoloader.json), it sometimes shows outdated information for hours.

It seems #1606 was closed, but the issue remains. In particular, we've had it reported when people are accessing from non-US locations (e.g. Asia/Pacific). Perhaps there's a CDN propagation issue?

As noted in the other issue, adding a cache-buster param or via a proxy shows the updated metadata.


Pure speculation, but perhaps this is happening:

  1. The new version of the package is uploaded, and is recorded as updated as of timestamp X.
  2. A package version check hits some non-primary CDN instance, caching the page at timestamp Y.
  3. The main source propagates out to the CDNs, clearing cached pages of that package that are older than X.

Because the caching on step 2 occurred after X, it isn't auto-purged on step 3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions