I noticed an issue today with the query load functionality. I have a simple load more button on my blog page. When in admin mode, it works fine. When I have WP Fastest Cache & Redis Object Cache applied, it prints the following error to console when the Load More Button is clicked
I don’t really have deep knowledge about those two plugins, but I suggest you narrow the problem down to one plugin, and then try to change the settings of that plugin so that it will not block our request anymore.
You will have to play with settings a bit though.
First, which one of those plugins is causing the problem? Then I can try it also in my install, since the error is 403 - rest_cookie_invalid_nonce, which I would like to replicate locally.
It looks like the nonce generated by WP already expired and is not allowed to access the rest API.
Can you please check if you can reduce the caching time in your cache plugin to maybe 8 hours, and that may solve the issue.
More info about caching lifespan here: Nonces and Cache Lifespan - WP Rocket Knowledge Base
Interesting. I see that the premium version of WP Fastest Cache has a timeout /refresh feature.
Their site is down at the moment, but once back up, i’ll try that and see if it works.
However, if WP has a nonce refresh time of 24 hours, are you suggesting 8 hours because that miminizes the amount of time they’re out of sync?