Added ?w to all CSS files

Jacob - August 29, 2008 - 16:45

Hi,

It's not a disaster, but all CSS file calls made with question mark and letter w:

<link type="text/css" rel="stylesheet" media="all" href="/modules/book/book.css?w" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/node/node.css?w" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/defaults.css?w" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system.css?w" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system-menus.css?w" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/user/user.css?w" />

CSS can't accept GET parameters, so what's the point of adding "?w" ? Is it a bug or a feature?

Thanks,
Jacob.

Rotation

yelvington - August 29, 2008 - 18:10

Read the source code and the comments, which explain both how and why.

http://api.drupal.org/api/function/drupal_get_css/6

Got it , yelvington from the

Jacob - August 29, 2008 - 18:22

Got it , yelvington

from the code :

  // A dummy query-string is added to filenames, to gain control over
  // browser-caching. The string changes on every update or full cache
  // flush, forcing browsers to load a new copy of the files, as the
  // URL changed.

Thanks a lot,
Jacob.

 
 

Drupal is a registered trademark of Dries Buytaert.