Re: Mobile strategy

2011-03-18 Thread Hemal Kuntawala
I am just by checking the useragent in the request. On 18 March 2011 10:01, railsnerd rails.n...@gmail.com wrote: Hi there Is anyone using Heroku to serve a mobile and desktop version of their site? How to handle device detection? Particularly when using the some URLs to deliver

Re: Mobile strategy

2011-03-18 Thread railsnerd
You are doing this in the backend? Some people are checking the user agent in the front end... but that seems too late (if u can help it) What are your differences in what is delivered? Do you have different markup and content for mobile? If so I guess caching your URIs might be difficult if

Re: Mobile strategy

2011-03-18 Thread Dan Croak
I'm using mobile-fu on a few Rails apps on Heroku: https://github.com/brendanlim/mobile-fu It does device detection by checking the user agent against a giant regex. It also provides a mobile mime type so you can put your mobile-specific views in their own foo.mobile.erb views if you want. On

Re: Mobile strategy

2011-03-18 Thread Pedro Del Gallego
I am using two different strategies for this scenarios. Take a look at this screencast [1] and to the Responsive Design article at A List Apart. The first one is strategy is to serve different pages to the user. In this case I do it in the backend checking the user agent and render two different

Re: Mobile strategy

2011-03-18 Thread Hemal Kuntawala
Not good if you're caching then? On 18 March 2011 12:16, Dan Croak dcr...@thoughtbot.com wrote: I'm using mobile-fu on a few Rails apps on Heroku: https://github.com/brendanlim/mobile-fu It does device detection by checking the user agent against a giant regex. It also provides a mobile

Re: Mobile strategy

2011-03-18 Thread railsnerd
Yes, I was about to say all these techniques (other than the css media queries) require a hit to the backend. Ideally there would be detection on the edge/cloud, so varnish cache can kick in where possible without hitting a rails stack or sinatra. Still, good ideas in this thread. -- You

Re: Mobile strategy

2011-03-18 Thread Hemal Kuntawala
Indeed. I'm not totally convinced by client-side device detection from a responsiblity perspective. I think maintaining a server-side distinction, personally preferably via a subdomain, ticks most boxes given caching efforts. Interested in more views though.. On 18 March 2011 22:41, railsnerd

Re: Mobile strategy

2011-03-18 Thread railsnerd
Some Content Delivery Networks offer device detection and ESI based on this. This is the ideal solution, but too far outside of the Heroku sandbox - maybe? -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to