3

Whenever I switch between full and mobile versions of the site (via links in the footer) I see weird unique parameter in browser's address line:

param

What's this?

3
  • 3
    It is a cache breaker
    – rene Mod
    Commented Aug 14, 2017 at 19:46
  • I think it is needed to prevent the browser to serve you the main page from its cache where it really need to be a new fetch from the server to give you the mobile html, css and javascript. Otherwise you might end-up with an unhealthy mix of mobile and full-site versions of those files.
    – rene Mod
    Commented Aug 14, 2017 at 19:51
  • @rene are there any other ways to switch between sites without spoiling address line? Commented Aug 14, 2017 at 20:46

1 Answer 1

4

This is typical of the way jQuery handles Ajax calls, which

works by appending "_={timestamp}" to the GET parameters.

(source)

If you dig a bit through the JavaScript of the Stack Exchange site, you'll see that there are some Ajax calls involved in switching between the full and the mobile site.

4
  • Is it possible to prevent this ugly additive? Commented Aug 14, 2017 at 20:32
  • @alexolut no. My browser (Safari) shows nothing but the host (meta.stackexchange.com) anyway.
    – Glorfindel Mod
    Commented Aug 14, 2017 at 20:33
  • if you make a tap on the address line you will see it in Safari too. Commented Aug 14, 2017 at 20:43
  • @Glorfindel In case you weren’t aware, that’s an option in Safari Preferences > Advanced.
    – grg
    Commented Aug 15, 2017 at 6:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .