There is an popular advice, that if you want to use www.example.com, you should use 301 permanent redirect from example.com to it. But if I already has canonical tags that indicate www.example.com as the main page? Do I still need it? Because I notices it may delay the page for a few seconds because of the redirection.
It's up to you. But when you make 301 redirection, you say to searchengines something like - hey, this page is no longer avaliable, remove it from your index pls and when you use canonical, you say smth like - this page is still avaliable, but please don't index it. Please index the other page, but this page is still reachable for people and i don't want to delete it
So in my case, I will use canonical tags instead of 301 redirection to save a little bit user waiting time and server resources.