I am adding some error messages to my application. I want to be able to report a method name from a class, even if the function can be anonymous.
So far, my solution has included reading the source of the script tag, loading it with XmlHttpRequest. My problem is that Firefox will not load from the cache and is always called to the server (chrome uses the cache, and I have not started it in IE yet). Since my project has thousands of lines of code, a second server request takes undesirable time.
Does anyone know how to make Firefox check cache? If this is not the case, is there a way to read the script source directly from the script tag? Is there any other way to get a source that I haven't thought about?
source
share