Hi,
My CSS files are not loaded under IE 6 & 7 when there is dynamic argument at the end of the file.
Example:

When I manually delete this argument - it works:
link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/custom/polaczkowo/style.css"
This problem is even I've disabled all caches.

I don't understand what's for is `?4` argument? It's necessary and how I can disable it?
And it's a bug of IE, or it's not standard to use dynamic arguments in css files?
Is there any module which solve this issue?

Comments

kenorb’s picture

Again, not working example:
link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/custom/polaczkowo/style.css?4"
Working:
link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/custom/polaczkowo/style.css"

mr.baileys’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

The "?nn" argument at the end forces browsers to download the stylesheet from the server again (instead of using a local cache).

From common.inc:

  // 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.
  $query_string = '?'. substr(variable_get('css_js_query_string', '0'), 0, 1);

Since it is specific to IE, can you see if this might be caused by #228818: IE: Stylesheets ignored after 31 link/style tags? Do you experience the same issue with CSS aggregation enabled?

mdupont’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Cleaning old issue. IE doesn't have issues about query strings appended to CSS urls, it is likely to come from the number of stylesheets.