Next.js Discord

Discord Forum

Caching 404s in catch all

Unanswered
Bigeye tuna posted this in #help-forum
Open in Discord
Bigeye tunaOP
Hi!
Our site is using Next, and use a catch all page to display data from the cms.
We want to cache all pages with content, however, all 404-paths are also cached, which can lead to a problem when they are stored as too long paths.

Is it possible to not cache all 404s? Or does Catch all mean cache all?

The the cms (Enonic) plugin for Next.js that is set up to work like this.

0 Replies