Ever since June 12, 2012 at 11:20 TU, I have been noticing strange errors in my varnish/apache logs.
At times, after a user has requested a page, I observe a similar request moments later but with the URL string after the last "/" being replaced by "undefined".
For instance: http://example.com/foo/bar triggers a http://example.com/foo/undefined request.
However, these "undefined" pages do not exist and instead my custom 404 page is displayed (with a unique layout design).
- This occurrence happens across all pages on the website (from homepage to deepest levels).
- The issue arises with various browsers (primarily Chrome 19, but also Firefox 3.5 to 12, IE 8/9...) affecting only 1% of traffic.
- The headers sent with these requests are standard headers without any ajax headers.
- It seems that this problem randomly occurs for a specific IP: sometimes during the initial page visit, other times at random points throughout the visit, or even across multiple pages.
Although it appears to be related to a JavaScript issue (I use jQuery 1.7.2 hosted by Google), I have made no changes to the js/html or server configuration recently and have never encountered such errors before. Additionally, there are no links leading to these erroneous pages in the HTML.
Some interesting observations I've made include:
- The "undefined" requests are not listed as referrers for other pages; instead, the actual pages are used as referrers for subsequent requests from the same IP address (users can navigate using the classic menu on the 404 page).
- No traces of these pages appear in Google Analytics, indicating that no JavaScript was executed (the tracking code is present on all pages including the 404 error page).
- Despite discussing the problem on the website's social networks, no users have reported experiencing this issue.
- Most users continue their visit despite encountering this error.
All of these observations lead me to believe that the problem silently occurs within browsers, possibly triggered by a faulty add-on, antivirus program, browser toolbar, or an unreliable software update integrated into browsers yesterday (although I haven't found any newly released add-ons for Chrome, Firefox, or IE).
Has anyone else encountered a similar issue or have a more comprehensive explanation?