Skip to content

Check sha before recomputing github manifest #57

Description

@jldec

We cache the github content manifest in KV and regen on requests for / with no-cache headers.

I noticed that some crawlers (hostile bots?) trigger the regen becuase they set no-cache headers.
A nice optimization is to track the git sha and only regen only when there's a new sha on the HEAD of the branch.

Long term the fix is to regen on a hook, or only requests with auth.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions