TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Rack::ChromeFrame, easy Google Chrome Frame integration for Ruby apps

36 pointsby luigiover 15 years ago

4 comments

simonwover 15 years ago
This should check the Content-Type header and only modify text/html - otherwise it might mangle outgoing JavaScript / XML / etc files.
评论 #839657 未加载
judofyrover 15 years ago
Shouldn't this <i>first</i> check if Chrome Frame is actually used (by using the User-Agent header) before it injects the code? And why not just place the four lines straight into your layout?
评论 #839404 未加载
tamersalamaover 15 years ago
nice - but looks like it doesn't take into consideration the user agent. <a href="http://github.com/sunlightlabs/rack-chromeframe/blob/master/chrome_frame.rb" rel="nofollow">http://github.com/sunlightlabs/rack-chromeframe/blob/master/...</a>
评论 #839433 未加载
petercooperover 15 years ago
Didn't use the plugin but used the code snippets on a site just to test it out and.. I think Google need to slicken it up a bit first. The installation overlay blocks out most of the site on IE6 and doesn't seem to be closable. I'm guessing this is really meant for sites that <i>demand</i> it be installed rather than an optional thing - but if that's true, why not just redirect?
评论 #839682 未加载