Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does ?v=2 mean in css? [duplicate]

Tags:

css

Possible Duplicate:
What does appending “?v=1” to CSS and Javascript URLs in link and script tags do?

When I download a files from http://html5boilerplate.com/, it has ?v=2 in css.

What does it mean and how does it affect to loading css?

<link rel="stylesheet" href="css/style.css?v=2">
like image 421
shin Avatar asked Nov 20 '10 18:11

shin


People also ask

What is the order of priority of CSS?

The location order of precedence is: browser default rules, external style sheet rules, embedded styles, and inline style rules.

How do you prioritize CSS styles?

Note: It doesn't matter in which order the classes are listed in the HTML element. However, the order of the class declarations in the <style> section are what is important. The second declaration will always take precedence over the first. Browsers read CSS from top to bottom.

What will you use to style a single specific?

This is Expert Verified Answer Applying style to a single specific HTML element can be best achieved through id type selector. The id type selector is used in CSS (Cascading Style Sheets) in order to select a specific single HTML element having that specific id attribute. The id type selector is used as #id_name.


1 Answers

If you set caches to expire far in the future adding ?v=2 will let the server know this is a new file but you won't need to give it a unique name ( saving you a global search and replace)

like image 52
Gregg B Avatar answered Sep 30 '22 06:09

Gregg B