What is the possible way for serving Polymer bundles based on user agent?
I am using NGINX web server and here is my Nginx config file partial code.
map $http_user_agent $version {
~(MSIE|Edge|Trident) es5;
default es6;
}
location /cdn {
proxy_pass http://my_appname/$version;
}
Unfortunately, it does not seems to work. if someone has one any alternate solution please share.
i suggest you use PRPL Server which is doing exactly that. It will deliver es5 or es6 to your client depending on it´s capabilities.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With