Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
litespeed_wiki:cache:developer_guide:mobile-vary [2019/08/20 15:09] Kacey Schroeder proofread |
litespeed_wiki:cache:developer_guide:mobile-vary [2019/08/20 15:09] (current) Kacey Schroeder |
||
---|---|---|---|
Line 16: | Line 16: | ||
Mozilla/5.0 (iPad; CPU OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/16A5288q Safari/605.1.15 | Mozilla/5.0 (iPad; CPU OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/16A5288q Safari/605.1.15 | ||
- | For the above exemplary user agent, we will use ''Android'' or ''iPad'' as the user agent to detect tablets , use ''iPhone'' or ''Mobile'' to detect mobile, and consider all the rest desktop. This is a simple solution but it should cover most cases. The rules can be further extended to match more specific cases. | + | For the above exemplary user agent, we will use ''Android'' or ''iPad'' as the user agent to detect tablets , ''iPhone'' or ''Mobile'' to detect mobile, and consider all the rest desktop. This is a simple solution but it should cover most cases. The rules can be further extended to match more specific cases. |