How efficient is the following method:
var i = new Image();
i.src = 'http://secondary.domain.com/command.gif?command=somecmd&rand=' + ...epoch time....;
... utilizing mod_rewrite to redirect the above URL to a PHP script ...
Is this an effective way to bypass cross-domain restrictions for one-way AJAX commands?
We have multiple commands that consistently return 204 responses. Considering moving them to another server.
Can we rely on the browser to request the image even if it's not being rendered?
Are there any known cross-browser complications with this approach?
Would it be more reliable to actually place a 1px/1px image somewhere in the document to ensure the image is loaded?
Session-related matters are already managed using memcached and setting cookies to .domain.com.
Thank you!