Widget without POST request
AnonDev1312 opened this issue · 1 comments
Cloudflare is unable to cache the popular posts JSON file because the widget gets it with a POST request and CF is unable to cache POST requests without workers, even if you set a page rule. I tried disabling AJAX in the plugin settings but still doing the POST :(
It would be nice to have the option to disable the POST request so the JSON can be served from a CDN. The JSON file takes over 2 seconds to load on our site, and all other files are under 600ms.
Hi @Ungov77,
The POST
request you're seeing is WordPress Popular Posts updating the views count of your posts/pages. Cannot be "disabled" as that's a core functionality of the plugin.
The "Ajaxfify Widget" option (which can be turned on/off) uses GET
to -no pun intended- get widget's data so it can be rendered on screen. Has nothing to do with the POST
requests you're seeing.