How to check ajax caching?

In my code I have a bunch of ajax requests that have the cache option set to true. When I run my code, how can I tell whether the data was retrieved from cache or retrieved from the server (first request, or cache expired, or cache bypassed for some reason)? Ideally, I'd like to do it within the JavaScript code itself, as I might have several calls running in parallel.

Javascript ajax, caching 0 Answer

Which built-in method returns the calling string value converted to lower case?

This what I have so far, but I am getting a "Uncaught TypeError: Cannot read property '0' of undefined" error and I can't seem to figure it out.

function second_function(str)
                        {
                            var i;

                            for (i = 0; i < arguments.length; i++)
                            {
                                if(str.codeCharAt[i] >= 65 || str.codeCharAt[i] <= 90)
                                {
                                    str.codeCharAt[i] += 32;
                                }
                            }
                            return str;
                        }

i = 0 should equal to the first letter. If anyone could help it would be greatly appreciated. Also I have very little to no skills in JavaScript so please bear with me.

Javascript javascript, lower 0 Answer