سلوك غريب عند استخدام وكيل مستخدم غريب

Hello,

For testing my website, I often change my user agent in my browser. For example, I will change it to something such as Riverside Rocks. However, when I visit discourse with the non traditional user agent active, I see an old version, like so:

Riverside Rocks User Agent:

Mozilla/5.0 (X11; Linux i586; rv:31.0) Gecko/20100101 Firefox/31.0 User Agent:

While this is not a useful bug, I am just wondering why this happens. Is it to make it easier for crawlers to view content?

إعجاب واحد (1)

You are likely getting the web crawler view, yes. This is determined by the user-agent header sent in the HTTPS request.

إعجاب واحد (1)

Ah, good to know, thanks!