Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What purpose is of "&rnd=" parameter in http requests?

Why do some web-applications use the http-get parameter rnd? What is the purpose of it? What problems are solved by using this parameter?

like image 896
user1003133 Avatar asked Oct 19 '11 12:10

user1003133


People also ask

What is the purpose of use?

Purpose of Use means the purposes and scope described in the Documentation (there called “intended use”), limited to uses in connection with radiation therapy planning and delivery, as patient quality assurance, treatment plan adaptation, machine quality assurance, machine commissioning and services for the Licensee.

What is the real purpose of life?

Your life purpose consists of the central motivating aims of your life—the reasons you get up in the morning. Purpose can guide life decisions, influence behavior, shape goals, offer a sense of direction, and create meaning. For some people, purpose is connected to vocation—meaningful, satisfying work.

What is an example of purpose?

Example 1: "Our purpose is to inspire every family in the world to enjoy Sunday dinner together." Example 2: "Our purpose is to support the health and well-being of our planet and everyone who lives here."

What is the meaning of the purpose?

: something set up as an object or end to be attained : intention. : resolution, determination. : a subject under discussion or an action in course of execution. purpose.


2 Answers

This could be to make sure the page/image/whatever isn't taken from the user's cache. If the link is different every time then the browser will get it from the server rather than from the cache, ensuring it's the latest version.

It could also be to track people's progress through the site. Best explained with a little story:

  1. A user visits example.com. All the links are given the same random number (let's say 4).
  2. The user opens a link in a new window/tab, and the link is page2.php?rnd=4. All the links in this page are given the random number 7.
  3. The user can click the link to page3.php from the original tab or the new one, and the analytics software on the server can tell which one by whether it has rnd=4 or rnd=7.

All we can do is suggest possibilities though. There's no one standard reason to put rnd= in a URL, and we can't know the website designer's motives without seeing the server software.

like image 116
Nathan MacInnes Avatar answered Nov 13 '22 06:11

Nathan MacInnes


Internet Explorer and other browsers will read an image URL, download the image, and store it in a cache.

If your application is going to be updating the image regular, and so you want your users to not see a cached image, the URL needs to be unique each time.

Therefore, adding a random string ensures this will be unique and downloaded into the cache each time.

like image 39
Curtis Avatar answered Nov 13 '22 05:11

Curtis