Skip to content

Next.js SSR and side effects #2532

@masylum

Description

@masylum

First of all, thanks for this amazing framework. We love the simplicity of it!

I have a question related to caching SSR pages.
We have a page that has a side effect (accessing the DB) but we always receive the same response with a very aggressive caching strategy. I've checked the source and discovered that all SSR pages contain a cache control header .

While I understand the performance gains from it, how do you deal with pages that have side effects? Am I missing something?

Thanks in advance!

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