(Source Code) Adding timestamps to Drupal stylesheets to ensure an up to date browser cache
Source Code : Adding timestamps to Drupal stylesheets to ensure an up to date browser cache
You need to edit /includes/common.inc and add the following text to the drupal_get_css() function.
function drupal_get_css($css = NULL) {
$output = '';
if (!isset($css)) {
$css = drupal_add_css();
}
$preprocess_css = variable_get('preprocess_css', FALSE);
$directory = file_directory_path();
$is_writable = is_dir($directory) && is_writable($directory)
&& (variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC)
== FILE_DOWNLOADS_PUBLIC);
Courtesy:- webcoda.co.uk
- guru's blog
- Login to post comments
![Drupal-6-Book-[Building Powerful and Robust Websites with Drupal 6].jpg](http://www.drupalranch.com/images/Drupal-6-Book-[Building%20Powerful%20and%20Robust%20Websites%20with%20Drupal%206].jpg)