Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
icons on results not working in firefox / IE 11 #538
This is an odd issue. In the firefox inspector you can see that the web-font is requested (from the cdn), and the response headers of this request show that it has ~30kb of font to get. However, the response body is empty. The current cdn serving these requests is a gh-pages page serving static files. Changing back to the older self-hosted cdn fixes the issue completely.
Note that this is a combinatorial issue: gh-pages works fine with chrome, so it is not just the server, but firefox works fine with the nginx served cdn, so it not just the browser. I suspect firefox refuses to complete the request based on some header of the response, but since we can't modify these (served from GH), we can't do much about that. It may therefore be a security standards thing that firefox is stricter about than the rest.
An interim solution is to go back to our own CDN. This still means that we have the responsibility to keep this up. Ways of dealing with this in the future include: use a cloud based cdn (host it on Amazon or some such thing - downside = ongoing costs); leverage existing cdns (such as cloudflare) that already host fontawesome (should be doable - will be a minor change in im-tables); some kind of fail-over mirroring with the mods?; get existing cdns to host our resources (plead "science"?).
For the meantime we will go back to http://cdn.intermine.org though.
added a commit
Mar 6, 2014
changed the title from
icons on results not working in firefox
icons on results not working in firefox / IE 11
Mar 25, 2014
Looks like the problem is related to the CORS settings. I don't know how is GitHub pages, but on apache server, adding 'Header set Access-Control-Allow-Origin "*"' in to .htaccess of the CDN directory solved the problem. Some one explained it here http://wpvkp.com/font-awesome-doesnt-display-in-firefox-maxcdn/ .
Hi there Chen,
We encountered this issue some months ago, and would make the following
Information about setting these options can be found here:
On 27/05/14 01:52, Chen, Yi-an wrote: