Maybe I'm the first person ignorant enough to ask this question here.

At any rate I haven't found it posted in the forums.

The script tags emitted by drupal tend to look like:

<script type="text/javascript" src="/misc/jquery.js?k"></script>
<script type="text/javascript" src="/misc/drupal.js?k"></script>

What is the ?k for at the end of the src attribute ?

In fact what is the ? for at all ?

I've been searching around outside of drupal without finding the answer.

As I said, please excuse my ignorance.

Thanks for reading.

Comments

zbricoleur’s picture

// 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.

ss_drupal’s picture

That makes good sense.

Thanks very much for answering.