Intermittent 401 Error on AJAX PUT
We are doing an AJAX PUT from a JavaScript widget an authenticated session on the GTLRMaxwell site. Most of the time (say 9 out of 10 times) the request goes through correctly, but occasionally we get a 401 error and the request never hits WebContent (the module specified in the x-cobalt-host header).
The problem has been observed in CI, DEMO, and QED, but happens much more frequently when running locally.
When running locally, I set a breakpoint in GetSecurityHeaders(...). My breakpoint hits when I first get to the page (which happens to be for GET requests), and then it never hits for successive AJAX requests. I'm assuming this is Apache Interceptor caching the headers response. When the 401 comes back, the breakpoint also has not hit, which indicates to me that Apache Interceptor is rejecting the request without consulting Website first.
Any suggestions on what could cause this and next steps for debugging?