Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Caching issue #2825

Copy link
Copy link
Closed
Closed
Copy link
@Maxime-J

Description

@Maxime-J
Issue body actions

Some users who deployed Umami on Netlify started to have issues about responses being cached incorrectly (reference removed)

Here are a few queries which are returning the same cached response: (a part of 8 queries sent at the same moment)

/api/websites/[uuid]/metrics?startAt=1744092000000&endAt=1744178399999&unit=hour&timezone=Europe%2FParis&type=url&limit=10&search=
/api/websites/[uuid]/metrics?startAt=1744092000000&endAt=1744178399999&unit=hour&timezone=Europe%2FParis&type=referrer&limit=10&search=
/api/websites/[uuid]/metrics?startAt=1744092000000&endAt=1744178399999&unit=hour&timezone=Europe%2FParis&type=browser&limit=10&search=

Reading Netflify docs (https://docs.netlify.com/platform/caching/) and looking at the time the issue was first raised,
I wonder if this change could be the culprit: reference removed

In my understanding, having a Netlify-Vary with query=__nextDataReq is like saying that other query parameters don't affect the response, which is not the case, and all of the above queries end up in the same cache key whereas they shouldn't.
It looks like your docs example with Netlify-Vary: query=style|season.

Do I miss something?

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.