Disable cache for redirect to mobile version

Hello,
im working with litespeed private and public cache with good results, but there is a problem with redirects.

Using an included mobile-detector script redirect users to mobile version (under different subdomain) or desktop version. But with litespeed cache enabled, it caches redirection, and sometimes shows mobile version to desktop users.

How can I stop caching this redirection so all users get correct site version?

A simple solution is too add "Cache-control" header along with the "Location" header. so, this response wont be cached, as long as the cache policy is set to respect the response cache-control header.

However, if one URL could return more than one possible results, it is not public cache friendly, if you turn off caching redirect response, you will find that all user get none-mobile version including the mobile browsers.