[development] preventing browser cache

Blake Senftner bsenftner at earthlink.net
Thu Dec 9 21:18:50 UTC 2010


Thank you Adam. I was just about to go looking for that very same logic!

Sincerely,
-Blake
bsenftner at earthlink.net
www.BlakeSenftner.com
www.MissingUbercartManual.com

On Dec 9, 2010, at 1:12 PM, Adam B. Ross wrote:

> 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