Css and Js cached - cache and bw optimization disabled

federico - November 6, 2009 - 19:19

Hi,

I'm developing a theme, I made changes in css, but when i visit the pages, those changes where not being applied. I saw source and I saw that the actual theme css adress, for example:

/sites/all/themes/themeX/style.css
was changed to
/sites/all/themes/themeX/style.css?v

that is, a question mark and any number or letter is being added at the end. I guess this is a cached file, because my changes are not being applied, and when I visit that address i see the old file.

I disabled every cache and bandwidth optimization in admin/settings/performace without success. I also cleared browser and drupal cache.

I'm using drupal 6, without any cache module. Base theme is 966 robots, but js files address is also changed.

It's the first time i see this behavior, but i guess this has a simple answer.

Thanks in advance

Browser Trickery

lazycatch - November 7, 2009 - 14:47

Typically, people will sometime prepend '?random_stuff' to the end of thier css files, because browsers interpret the full url path, even with those get params in there. In order to deal with the caching issues, some people will use a get parameter with date the file was versioned in order to getaway with the file not being cached. it you had "style.css/v=1" and "style.css/v=2", they can be the same file, but the browser would redownload the v=2 version because it sees a different url.

This may not answer your question, but it could give you insight.

 
 

Drupal is a registered trademark of Dries Buytaert.