WebPagetest Forums
Debugging a rogue request - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Discuss Test Results (/forumdisplay.php?fid=4)
+--- Thread: Debugging a rogue request (/showthread.php?tid=14983)



Debugging a rogue request - bengoodson - 07-21-2017 02:22 AM

Hi,

In the process of debugging a long TTFB on a site I am making, I also discovered a couple of rogue requests that seem to be taking an age to return. I am having an awful time trying to locate the source of the request. The site is here:

http://www.benscookies.eu

The rogue requests are a request to https://www.benscookies.us/delivery and a request to benscookies.com. Both appear to be part of a redirect chain. I cannot see anything in the front end, the templates or database that could be causing it. Checking the line number of the request isn't helping as Web Page Test either isn't providing an accurate line number or I have something else misconfigured.

Any other eyes on this appreciated.

Ben


RE: Debugging a rogue request - dfavor - 07-22-2017 01:27 AM

curl -I -L http://www.benscookies.eu reports no easy to follow redirect chain.

These site references occur in your WordPress content somewhere.

Likely you're going to be looking for a WordPress expert who can search through your .php + database files for references to these sites.

PHP search is easy from command line.

ack -irl --php https://www.benscookies.us/delivery

ack -irl --php benscookies.com

For a database search, I'd just dump the entire database using mysqldump + grep for these two sites.

Once you locate the locations of these references you can strip them out.