Middleware not triggering at times?
Unanswered
American posted this in #help-forum
AmericanOP
When I navigate from page to page using the Link or the browser's back button. There would be times when the middleware would not trigger. Is there a way to address issue?
1 Reply
Because it’s cached by client, which means no request will be sent to the server side.
A workaround is to use
A workaround is to use
router.refresh to revalidate the page.