Not to address the pitfalls question, but you can directly tap into the same mechanism JS & CSS files use by using this:
>From >http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_get_js/6: > $query_string = '?' . substr(variable_get('css_js_query_string', '0'), 0, 1); On Thu, Dec 9, 2010 at 1:05 PM, Blake Senftner <[email protected]> wrote: > prevents browser caching, and ultimately does not trigger a query - so it's a > great method for cache prevention of dynamic content.
