Last modified: 2012-04-19 21:22:14 UTC
Instead of <link rel="stylesheet" href="http://commons.wikimedia.org/w/index.php?title=MediaWiki:Filepage.css&action=raw&maxage=2678400&usemsgcache=yes&ctype=text%2Fcss&smaxage=2678400" type="text/css" media="all" /> it should be a call to load.php of the foreign wiki loading module=filepage with only=styles and in the <head> section of the DOM ( addModuleScripts ). This way it'll be minified and cached accordingly See also bug 28083 (Only load it if the page exists / non-empty on the remote wiki)
Take into account that multiple foreign repos may exist and as such the module should accept a parameter to indicate which repo to get the CSS from.
Removing dependancy on ResourceLoader 1.0 implementation. This is a seperate issue (not even a bug, btu an enhancement)
Fixed in r91031.