[development] preventing browser cache

Adam B. Ross grayside at gmail.com
Thu Dec 9 21:12:23 UTC 2010

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 <bsenftner at earthlink.net> wrote:
> prevents browser caching, and ultimately does not trigger a query - so it's a great method for cache prevention of dynamic content.

More information about the development mailing list