On Mon, 10 Oct 2011 21:15:02 +0000, Sébastien WENSKE wrote:
> Hi Dale,
>
> I think that you can achieve that with dynamic stuff like PHP and
> browser
> headers.
>
> Sebastian
>
>
> -----Message d'origine-----
> De : Dale Mahalko [mailto:dmahalko_at_gmail.com]
> Envoyé : lundi 10 octobre 2011 19:33
> À : squid-users_at_squid-cache.org
> Objet : [squid-users] Splash page -- detect if client is mobile?
>
> Is there a way for a splash page to detect if it is being displayed
> on a
> mobile device, and to be able to redirect or show a different page
> that is
> reformatted to fit the much smaller display area of the mobile
> screen?
>
> I don't know if this is really a squid-related question, or if this
> can all
> be handled through the magic of javascript, independent of squid.
>
> -- Dale Mahalko
Well, yes. It can be handled by javascript and CSS a lot better than by
Squid or the web server.
Squid provides a "browser" type ACL to scan for regex patterns in the
User-Agent string. But it is really hard to tell the difference between
UA on smartphones, tablets, notebooks, projectors and PCs these days.
I'm apt to say don't bother since you can design the page to be flexible
on its own.
Amos
Received on Mon Oct 10 2011 - 22:08:27 MDT
This archive was generated by hypermail 2.2.0 : Tue Oct 11 2011 - 12:00:03 MDT