inspector adds ? and number to name of file

21 views
Skip to first unread message

sjong

unread,
Apr 13, 2012, 1:33:37 PM4/13/12
to Firebug
I am a newbie to Firebug and want to make an edit to my drupal
homepage. I can find and edit the page on my local computer no
problem. But the page it seems to be editing is the custom.css file
but with ?m44bie added to it (custom?m44bie) which does not exist on
my computer. So how do I make this edit on my computer?

alanrew

unread,
Apr 13, 2012, 4:31:52 PM4/13/12
to fir...@googlegroups.com

AFAIK, what's happening is that Drupal is adding the ?param onto the CSS file name when it includes it in the HTML, to prevent your browser caching it.

So it's not the FB debugger, it's the Drupal framework. FB is just showing how the CSS file name looks when Drupal incorporates the file.
The actual file name itself is unaffected; it's just the way it's shown in the relevant <link> tag in the <head> of the generated HTML.

Adding an artificial 'parameter' onto a file name like is a common trick used to prevent browser caching.

So you can edit the CSS file, which usually resides in the theme directory, using it's normal file name.

If you want more info on this, try the drupal.org forums. What you really here is a Drupal question :-)

HTH

Alan

alanrew

unread,
Apr 13, 2012, 4:34:24 PM4/13/12
to fir...@googlegroups.com


On Friday, 13 April 2012 18:33:37 UTC+1, sjong wrote:

Here's a link to a relevant Drupal forum query
http://drupal.org/node/436326
Reply all
Reply to author
Forward
0 new messages