I serve different content for a mobile user as the purpose for visiting from a mobile device is generally different - yup, served up from m.xyz.com. I check the user agent in a before hook (this is in Sinatra) and redirect if it's mobile.
On 18 March 2011 10:36, railsnerd <[email protected]> wrote: > 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 each URI needs to have > different versions for mobile and desktop..... unless you could > somehow map or redirect to m.xxx.com and treat it entirely separately. > > thanks for any tips > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
