Strange Behavior When Using an Odd User Agent


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 Like

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

1 Like

Ah, good to know, thanks!