Autoptimize Causing Post / on every page load
-
I have been trying to diagnose CPU issues on my server for several days.
Every single time a client loads my page, 3 HTTP requests hit my server:
status_code:200 2001:4898:80e8:b:2955:8e63:3b99:109e [19/Jul/2019:01:19:18 +0000] GET / HTTP/1.1
status_code:204 2001:4898:80e8:b:2955:8e63:3b99:109e [19/Jul/2019:01:19:19 +0000] POST / HTTP/1.1
status_code:200 2001:4898:80e8:b:2955:8e63:3b99:109e [19/Jul/2019:01:19:21 +0000] POST /wp-admin/admin-ajax.php HTTP/1.1
Two of these are to be expected (get / and post admin-ajax). However, one of the is incredibly out of place:
status_code:204 Post /
It is incredibly peculiar to me that my server receives a post / with every page load, returning a 204 HTTP code.
I tracked it down in the console stack trace, and it turns out it is autoptimize that is sending this post.
Here is where it occurs in the autoptimize code:
jQuery(document).ready(function($) {
var data = {
‘action’: ‘tptn_tracker’,
‘top_ten_id’: ajax_tptn_tracker.top_ten_id,
‘top_ten_blog_id’: ajax_tptn_tracker.top_ten_blog_id,
‘activate_counter’: ajax_tptn_tracker.activate_counter,
‘top_ten_debug’: ajax_tptn_tracker.top_ten_debug
};
jQuery.post(ajax_tptn_tracker.ajax_url, data);
});autoptimize/js/autoptimize_5142ed581038be5f050400a78235288b.js?x22882:formatted
For me, it appears on line 21873.
jQuery.post(ajax_tptn_tracker.ajax_url, data); is clearly the responsible party.
What is going on here? ? I assume it is unnecessary/a bug.
How do I prevent this post / request from happening?The page I need help with: [log in to see the link]
- The topic ‘Autoptimize Causing Post / on every page load’ is closed to new replies.