Skip to content

Commit

Permalink
*Disable cache busting in wp-rocket
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfreak30 committed Jun 17, 2017
1 parent 98d174f commit 8e416a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/class-rocket-async-css.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ private function define_public_hooks() {
add_filter( 'pre_get_rocket_option_minify_css', '__return_zero' );
add_filter( 'pre_get_rocket_option_minify_google_fonts', '__return_zero' );
add_filter( 'wp', array( $this, 'wp_action' ) );

remove_filter( 'style_loader_src', 'rocket_cache_dynamic_resource', 16 );
remove_filter( 'style_loader_src', 'rocket_browser_cache_busting', PHP_INT_MAX );
}
add_action( 'after_rocket_clean_domain', array( $this, 'prune_transients' ) );
add_action( 'after_rocket_clean_post', array( $this, 'prune_post_transients' ) );
Expand Down

0 comments on commit 8e416a3

Please sign in to comment.