Skip to content

stale gzip encoded /simple/ index on pypi.org #5494

@coryb

Description

@coryb

Describe the bug

The https://pypi.org/simple/ index is stale when fetching gzip encoded.

Expected behavior

the x-pypi-last-serial header should be the same or close when fetching the /simple/ index with and without gzip compression.

To Reproduce

Fetch serial for non-compressed index:

$ curl -qs -D- https://pypi.org/simple/ | grep last-serial
x-pypi-last-serial: 4872850

Fetch serial for compressed index:

$ curl -qs -D- -H "Accept-Encoding: gzip" https://pypi.org/simple/ | grep last-serial
x-pypi-last-serial: 4869648

Currently the difference is ~3200 generations.

My Platform

Noticed this with an internal corporate proxy that requests gzip'd data by default for performance reasons. We can request uncompressed data, but that would just waste your network bandwidth.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    CDN/networkIssues related to our CDN, users having problems connecting to PyPI

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions