Cookies configuration


#1

Is it possible to redirect users from cloudflare according to the cookies??
for example:

when request homepage with cookie device_view=full it will return full version view

also when request homepage with cookie device_view=mobile return mobile version view
if request with no cookie it will reach to server to get cookie “first time”


#2

You could probably achieve this with workers.


#3

Thanks for your reply but would you mind explaining how?
as I didn’t use workers before.


#4

https://developers.cloudflare.com/workers/about/ should have everything.