da5tan
da5tan

Reputation: 13

Styles import with parameters in HTML

Please, explain what does "?v=1" mean in <link rel="stylesheet" href="css/style.css?v=1">?

Thank you!

Upvotes: 1

Views: 214

Answers (1)

RichieHindle
RichieHindle

Reputation: 281495

It's an informal way of versioning external resources, and of controlling whether they are cached. You increment that number when the file changes, guaranteeing that all browsers load the new version. The number isn't actually used anywhere - it's just a way of uniquifying the URL for the current version of the file.

Upvotes: 2

Related Questions