Skip to content

Disable caching: "New content is available; please refresh" #4639

@elie222

Description

@elie222

Is this a bug report?

No

Our app is often serving old data to users. We see this message in the console:

New content is available; please refresh

But I'd rather them just never get to the old version of the site at all. If the API has been updated, the frontend may no longer work correctly at all, which happens a bunch for our app. I'd rather a user always just ask for the latest version when he gets to the site. Netlify CDN will serve it fast enough, so I don't need this extra caching breaking things and causing unnecessary bugs. How can we get around this with CRA?

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