Exclude Javascript/CSS from Processing
-
When JS “Exclude Javascript from Processing” or CSS “Exclude the following CSS from Processing“, the output of the excluded JS/CSS resource strips everything “?ver=12345” even though it’s been defined in the wp_enqueue_script or wp_enqueue_style functions.
Eg. “https://example.com/wp-content/themes/example_theme/assets/css/style.min.css?ver=ySnI0lPz6W’ when define as being excluded under “Exclude Javascript from Processing” with “wp-content/themes/”, it outputs the HTML tag with the src “https://example.com/wp-content/themes/example_theme/assets/css/style.min.css”.
This is a massive problem due to most websites are serving static resources with long expiry dates for this assets. With the query “?ver=12345” stripped, this remove the developers intend to force updated of the resource on the CDN and client’s browsers cache.
- The topic ‘Exclude Javascript/CSS from Processing’ is closed to new replies.