I am running Drupal 6.12 after having battled a cracker/hacker for a week. Everything seems to be OK, but I had a question about the html output.

Why are all the scripts and css files called with "?7" after them?

"../misc/jquery.js?7" "../style.css?7"

etc.

What is the purpose of that "7," and where is it generated? I've been running Drupal sites for years and never noticed it until now.

Thanks for any explanation

Comments

BradleyT’s picture

If you clear the cache then drupal can set them to ?8 and all browsers will request the new css/js files.

CharlieHipHop’s picture

So those files are dynamic? I wonder why.

neokrish’s picture

those files are not dynamic. In case you make some changes in the js or css files in the theme folder, changes may not be reflected if your browser uses the cached ones. "?"s in the file name tricks the browser to think as if they are new files.

CharlieHipHop’s picture

Thank you.