0

I often see URLs in the following format:

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

What does the query string ?nzs0qa mean?

1
  • This would most likely be a hash of the file, which is different whenever the contents of the file change. This prevents problems with caching. Commented Dec 23, 2015 at 7:33

2 Answers 2

5

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.

Sign up to request clarification or add additional context in comments.

2 Comments

ok thanks, then we can generate the string using php but css has nothing to do with that ?
Yes, this random string is generated by PHP/C#/JAVA. If you use PHP, you can use: revslider/rs-plugin/css/settings.css?nzs0qa<?php echo random_string; ?>
0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.