On Tue, Oct 18, 2011 at 4:22 PM, Daniel Barrett danb@vistaprint.com wrote:
Brion asked:
So.... where's your code being loaded from? Site or use JS pages? Some literal JS files output from an extension? Something else?
From a physical JS file (e.g., myfile.js) handed to ResourceLoader by my extension:
$wgResourceModules["vp.wiki.editor.edittools"] = array( 'scripts' => array( 'js/myfile.js, ), 'localBasePath' => dirname(__FILE__), 'remoteExtPath' => 'MyExtension', );
Can you see it being loaded incorrectly from something cached?
I just observed that the value doesn't change -- even after ctrl-F5 -- unless I clear the browser cache (Tools / Options / Advanced / Network / "Clear Now" in Firefox). This was true in IE and Chrome too.
This is probably a ResourceLoader thing, then, not directly related to WikiEditor. Please try waiting 5-10 minutes for the cached version of the startup module (the request with &modules=startup) to expire (it has s-maxage=300, max-age=300), then RL should request your module with an updated timestamp and that should give you the new version. Also, verify that the filesystem timestamp of the file has changed after you updated it, because that's what RL uses to determine whether a file has changed.
Roan