turn off css question mark lettering?

msaspence - November 20, 2008 - 11:34

drupal is putting a question mark and a letter at the end of my css links which i'm guessing is to force the browser into not caching them

but it is making it hell to use ccsedit a mac app that lets you overide and edit in real time a pages css
because each time i refresh the page the css link has changed and i have to redo the over ride rules

can any one tell me how to turn it off

The only way how to remove

sign - November 20, 2008 - 12:47

The only way how to remove it would be to hack drupal_get_css function imo.
See the code of http://api.drupal.org/api/function/drupal_get_css/6

  // 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);

Remove it while developing, but don't forget to put it back.

London Drupal developers - Atomic Ant ltd

will do nicely

msaspence - November 26, 2008 - 10:52

will need to remember to hack it each time i upgrade drupal
but because i have a development domain I can put a if not dev platform

Why is it there?

ExTexan - April 29, 2009 - 05:44

My question is... why is the ?X appended to the css link statements in the first place. msaspence speculates that it is so that they won't be cached, but why wud you NOT want them to be cached (other than during development, that is)?

 
 

Drupal is a registered trademark of Dries Buytaert.