RE: [squid-users] Splash page -- detect if client is mobile?

2011-10-10 Thread Sébastien WENSKE
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:dmaha...@gmail.com] 
Envoyé : lundi 10 octobre 2011 19:33
À : squid-users@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


smime.p7s
Description: S/MIME cryptographic signature


RE: [squid-users] Splash page -- detect if client is mobile?

2011-10-10 Thread Amos Jeffries

On Mon, 10 Oct 2011 21:15:02 +, 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:dmaha...@gmail.com]
Envoyé : lundi 10 octobre 2011 19:33
À : squid-users@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