Skip to content

stale content not being updated #201

@csmithATsquiz

Description

@csmithATsquiz

I have an upstream that has a short lived max-age and slightly longer stale headers, that once I get past that time, content isn't refreshed.

The cache headers from the upstream are:

< Cache-Control: max-age=0, s-maxage=15, stale-while-revalidate=60, stale-if-error=900, private

I can see ledge triggering a background refresh, but when it tries to fetch the new content, it returns the stale content again (no matter how long I wait).

A dumb fix is attached.

stale.patch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions