[Vuejs]-Detect Crawler and load Template from server

0👍

If you want to dynamically set meta tags like og:title or og:image you may want to consider doing it from backend code so that the dynamic tags are in place when the html is sent to the browser. The reason for this is that some crawlers do not run javascript code. For any crawler that does not run javascript code, setting such meta tags via a clientside library like Vue.js will not affect what the crawler sees since it will only see the html as it existed when originally streamed from the server.

Leave a comment