As stated in the title, there seems to be an issue whereby the middleware doesn't trigger when we are clicking on the browser's back button.
It seems like a cache issue because if i refresh the page and press the back button, the middleware seems to trigger.
Based on the documentation
Middleware runs before cached content and routes are matched.
The browser shouldn't return the cached content instead return a new page.
Here is a simple reproducible code
https://github.com/dextersiah/nextjs-reproduction