Haren Sarma
Haren Sarma

Reputation: 2553

What Is the Use of the Random Characters in the Query String Section of a URL to a CSS File?

I often see URLs in the following format:

revslider/rs-plugin/css/settings.css?nzs0qa

What does the query string ?nzs0qa mean?

Upvotes: 0

Views: 203

Answers (2)

Martin Wang
Martin Wang

Reputation: 79

nzs0qa is a ramdom string. The purpose of the "?nzs0qa" is to force your browser to download the latest version of the css. You know browser will keep the static files such as css, js, etc in cache. If you update the css, but your visitors use old version, it might be some mistake.

That's all.

Upvotes: 5

Igal S.
Igal S.

Reputation: 14573

The part of the question mark is called the query part. The question mark itself is not part of the query.

I suggest reading about URL format. From Wikipedia: https://en.wikipedia.org/wiki/Uniform_Resource_Locator

An optional query, separated from the preceding part by a question mark (?), containing a query string of non-hierarchical data. Its syntax is not well defined, but by convention is most often a sequence of attribute–value pairs separated by a delimiter.

Upvotes: 0

Related Questions