Skip to content

Instantly share code, notes, and snippets.

@lrobeson
Created October 27, 2015 00:08
Show Gist options
  • Select an option

  • Save lrobeson/344292a12f90c0fa4b05 to your computer and use it in GitHub Desktop.

Select an option

Save lrobeson/344292a12f90c0fa4b05 to your computer and use it in GitHub Desktop.
Drupal: remove query strings from CSS filenames (CacheBuster)
// Remove Query Strings from CSS filenames (CacheBuster)
$vars['styles'] = preg_replace('/\.css\?[^"]+/','.css', $vars['styles']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment