Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
kenorb CreditAttribution: kenorb commentedAgain, 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"
Comment #2
mr.baileysThe "?nn" argument at the end forces browsers to download the stylesheet from the server again (instead of using a local cache).
From common.inc:
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?
Comment #3
mdupontCleaning old issue. IE doesn't have issues about query strings appended to CSS urls, it is likely to come from the number of stylesheets.