Skip to content

CDN cache misses increased 7x after Oct. 8, 2023 #486

Closed
@gerhard

Description

@gerhard

What is the problem?

After Oct. 8, 2023, CDN cache misses increased by 7x, from 0.75m to 5.2m

image

This seems to be coming from the app origin, specifically F_fly_2022_03_13

If we group by url, we notice that /feed, / & /feed/ requests are the ones with the highest increase in cache misses:

image

What is the Fastly response if we enable debug headers?

image

This looks like a clean cache miss, and we do not have shielding enabled. Fixed it.

Note
While at it, I did the same for the feeds origin.

Does this fix it?

This looks a lot better now:

image

👉 Let's give this a few hours before we check the hits vs misses again.

Questions

Do the cache headers look correct?

Looking at a specific URL endpoint served by the origin, we see the following:

image

This looks correct to me. surrogate-control is set and should have precedence over cache-control. Reference: Understand how cache control headers work.

If the surrogate-control headers are respected, why does this content have so many misses? cc @jamesarosen

Could this config change be related to the increased cache misses?

We had a two VCL changes earlier that day:

The second one looks suspicious, but on closer inspection we are simply setting surrogate-control to AWS S3 headers which are prefixed with x-amz-meta-:

image

Could the above change be related to the increased cache misses @jamesarosen?

To be continued...

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