Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

In <link rel="stylesheet" href="css/styles.css?v=1.0">, ?v=1.0 is a query component on the stylesheet’s URL. Developers commonly change its value when the CSS file changes so the URL becomes different and browsers or caches are less likely to reuse an older copy. This technique is usually called cache busting.

How to read ?v=1.0

The question mark starts the URL query. In this example, v is a parameter name and 1.0 is its value:

  • ? introduces the query string.
  • v is a developer-chosen parameter name, often meaning “version.”
  • 1.0 is an arbitrary value supplied with the request.

It is not an HTML attribute, a CSS instruction, or a special version declaration understood by the browser. It is simply part of the resource URL.

Why developers change the value

Browsers and intermediary caches can retain stylesheets. If a site changes styles.css but keeps exactly the same URL, a visitor may temporarily receive a cached copy. Changing the URL, for example from styles.css?v=1.0 to styles.css?v=1.1, gives the request a new URL and is intended to make the updated stylesheet more likely to be requested.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
HTML and CSS: Design and Build Websites
  • HTML CSS Design and Build Web Sites
  • Comes with secure packaging
  • It can be a gift option

Other values can serve the same purpose

The value does not have to follow semantic versioning. A timestamp or a build-generated identifier can be used instead, provided it changes when the CSS changes. For example:

  • styles.css?v=20261002
  • styles.css?v=build-8472

The value itself does not tell the browser how to compare CSS versions; the application or deployment process decides when to change it.

What happens on the server

When the browser requests the URL, the query is sent to the server along with the path. Whether the server, CDN, proxy, or other cache treats different query strings as different resources depends on that system’s configuration. Therefore, changing ?v=1.0 is a cache-busting technique, not a universal guarantee that every layer will fetch fresh content.

Example workflow

  1. Publish the stylesheet as css/styles.css?v=1.0.
  2. Edit the CSS file.
  3. Change the reference to a new value, such as css/styles.css?v=1.1, or generate a new timestamp or build identifier.
  4. Deploy the HTML and CSS together, then verify the request and response behavior in the target hosting and caching setup.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Important limitation

A December 15–16, 2013 SitePoint forum discussion explains this usage and notes that query-based cache busting may not behave as intended with some proxies or content filters. The exact result depends on the browser, server, CDN, proxy, and cache policy involved, so the example should be understood as a common technique rather than a promise of identical behavior everywhere.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
Web Design with HTML, CSS, JavaScript and jQuery Set
  • Brand: Wiley
  • Set of 2 Volumes
  • A handy two-book set that uniquely combines related technologies Highly visual format and accessible language makes these books highly effective learning tools Perfect for beginning web designers and front-end developers

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.