Skip to content Skip to sidebar Skip to footer

Read The Source Of A Script Tag From The Cache In Firefox

I'm adding some error reporting to my application. I want to be able to report the method name from a class, even thought the function may be anonymous. So far my solution involve

Solution 1:

Have you considered filing a bug against Firefox? Use bugzilla.mozilla.org. (If it asks you where you want to file the bug, use Product: "Core", Component: "Networking: Cache".)

The security rules are different for <script> vs. XHR... but that's really no reason for Firefox to skip the cache.


Solution 2:

This site could help: http://blog.httpwatch.com/2009/08/07/ajax-caching-two-important-facts/ http://www.httpwatch.com/demos/ajax_caching/

It talked a lot about HTTP header manipulation, so you should write a PHP script that outputs the script content, and add apporarite caching headers.

Also, did you try jQuery.ajax({type: "script", cache: true})? It has a cache option. http://api.jquery.com/jQuery.ajax/


Post a Comment for "Read The Source Of A Script Tag From The Cache In Firefox"