Skip to content

Cache issues calling packagist API #1524

Open
@kbond

Description

@kbond

I think I'm experiencing the same issues as described in #1508 & #1522.

curl -I https://packagist.org/p2/zenstruck/changelog.json

HTTP/2 200
date: Sun, 06 Apr 2025 13:50:30 GMT
content-type: application/json
vary: Accept-Encoding
server: BunnyCDN-IL1-871
cdn-pullzone: 3535225
cdn-uid: 2efa5d34-cde8-4206-b9f5-369d84a45719
cdn-requestcountrycode: CA
cache-control: public, max-age=2592000
last-modified: Mon, 28 Oct 2024 17:50:48 GMT
x-content-type-options: nosniff
cdn-proxyver: 1.22
cdn-requestpullsuccess: True
cdn-requestpullcode: 200
cdn-cachedat: 04/05/2025 18:50:26
cdn-edgestorageid: 1029
cdn-requestid: e21b182e5aa8d26df245e8e622989e4f
cdn-cache: HIT
cdn-status: 200
cdn-requesttime: 1

And missing the latest versions.

curl -I https://packagist.org/p2/zenstruck/changelog.json?break-cache

HTTP/2 200
date: Sun, 06 Apr 2025 13:52:24 GMT
content-type: application/json
vary: Accept-Encoding
server: BunnyCDN-IL1-1207
cdn-pullzone: 3535225
cdn-uid: 2efa5d34-cde8-4206-b9f5-369d84a45719
cdn-requestcountrycode: CA
cache-control: public, max-age=2592000
last-modified: Sun, 06 Apr 2025 13:27:38 GMT
x-content-type-options: nosniff
cdn-proxyver: 1.22
cdn-requestpullsuccess: True
cdn-requestpullcode: 200
cdn-cachedat: 04/06/2025 13:52:24
cdn-edgestorageid: 1067
cdn-requestid: c042c825d329a3c0ecf6aa8d6bcc3bed
cdn-cache: MISS
cdn-status: 200
cdn-requesttime: 0

Adding a query param (?break-cache) gets me the correct response (with latest versions included).

Opening https://packagist.org/p2/zenstruck/changelog.json in Chrome shows the correct response.

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