Irregular cache

There is a problem with my website’s API pages. While ‘Underattack Mode’ is turned off on the site, some of the people who use the URL face the ‘JS Challenge’, while others can access it without any problems.

I deleted the caches on Cloudflare and all caches of my Laravel project. The problem still continues.

This is because Cloudflare is choosing who to serve challenges to. If you want to reduce the amount of users who see challenge then you can lower your security mode.