Hi guys, i was experimenting for some weeks on several installs a strange error that could appear as a randomly occurring syntax error in the first.js amd code aggregator.
After some hours of digging, i found that the response of lib/requirejs.php/-1/core/first.js was actually a bit strange :
when firing several time the (uncached) js code, appears the first.js code not being always complete. It comes sometime truncated from the first part, and starts in middle of the JS, which ostensibly fails into understandable parsing error.
The weird part is that the content given to the js_send_uncached($content, $filename) of lib/jslib is regular and constant size (that is all the js is properly given to the sender.
Whats(s weird :
* the js_send_uncached just put some headers out and echoes the content.
* the cutoff points are in general random, but some patterns seems being happening several times at the same cutoff location, f.e :
I got in a short time the cutoff point :
promises. if (exception !== null) { for (; i < requests.length; i++) { request = requests[i]; request.deferred.reject(exception); } } };in two separate tyout successively on FF and Chrome.
* when arrives truncated in the browser, even the response headers have disappeared.
* The truncation event sequence is not stable, but usually no more than two truncated requests successively.
* local browser cache seem not having effect
Moodle is 31 and using a local Apache2 on windows 8 (for environment info)
Do someone know something about this phenomenon ?