Middleware sometimes not working
Unanswered
phoenixlaw9 posted this in #help-forum
When I enter page like wishlist the first time middleware work but when enter second time not work. I must wait like 20 seconds to enter the middleware.
I am using next 14.2.13 app route middleware is inside the src folder.
Its seems like cached the url and not enter the middleware is there something I can do?
I am using next 14.2.13 app route middleware is inside the src folder.
Its seems like cached the url and not enter the middleware is there something I can do?
2 Replies
Put a console.log in the middleware to log the route where the request is coming from, check if the middleware is indeed logging the incoming route url or it is missing it
@LuisLl Put a console.log in the middleware to log the route where the request is coming from, check if the middleware is indeed logging the incoming route url or it is missing it
It happened Like this video but to me I must always w8t 15-20 seconds
https://drive.google.com/file/d/19-UsJ18vxEoAK5b8X-bm0KEZpcZqrRmU/view
https://drive.google.com/file/d/19-UsJ18vxEoAK5b8X-bm0KEZpcZqrRmU/view