Skip to content

Caching issues return old package versions #1612

Description

@tbradsha

Important note, for anyone reporting issues here please record a HAR file to allow us to share this with our CDN provider in a way that contains enough metadata.

See https://support.zendesk.com/hc/en-us/articles/4408828867098-Generating-a-HAR-file-for-troubleshooting


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.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions