Title: Excluding Script files from Cache
Last modified: August 8, 2020

---

# Excluding Script files from Cache

 *  Resolved [fittastetic](https://wordpress.org/support/users/fittastetic/)
 * (@fittastetic)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/excluding-script-files-from-cache/)
 * Is there a way to completely exclude a whole Plugin from any interaction especially
   caching from Asset-Clean Up Pro?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * (@gabelivan)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/excluding-script-files-from-cache/#post-13260761)
 * [@fittastetic](https://wordpress.org/support/users/fittastetic/) my sincere apologies
   for not getting back to you sooner!
 * There are ways to exclude CSS/JS files from any caching if they belong to a specific
   plugin. There are exclusion options. Here are a few examples.
 * Let’s suppose that you want to prevent all JS files from a certain plugin from
   being minified by Asset CleanUp. To do that, you can go to _“Settings” -> “Optimize
   JavaScript” -> “Do not minify the JavaScript files matching the patterns below(
   one per line):”_ and input there something like _/wp-content/plugins/the-plugin-
   title-here/_.
 * The same thing can be applied in _“Combine loaded JS (JavaScript) into fewer 
   files”_ to prevent any files that belong to a specific plugin from being added
   to the combined files (if the feature to combine JS files is enabled of course).
 * Please check the following article which explains how the files from the caching
   directory are generated in the first place: [https://assetcleanup.com/docs/how-css-js-are-created-within-the-caching-directory/](https://assetcleanup.com/docs/how-css-js-are-created-within-the-caching-directory/)
 * Note that not all the features have exclusion options. These include: _“Cache
   Dynamic Loaded JavaScript”_, _“Cache Dynamic Loaded CSS”_, _“Apply font-display:
   CSS property value”_.
 * Please let me know what plugin would you rather have excluded and why as it would
   help me in assisting you better. I noticed you added _“a3 lazy load”_ to the 
   tags. If you’re referring to _“a3 Lazy Load”_ plugin, you can add the script 
   that is loaded to the exclusion lists I mentioned.
 *  [dimisius](https://wordpress.org/support/users/dimisius/)
 * (@dimisius)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/excluding-script-files-from-cache/#post-13656083)
 * hello, is it possible not to cache one js file?
 *  Plugin Author [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * (@gabelivan)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/excluding-script-files-from-cache/#post-13656144)
 * [@dimisius](https://wordpress.org/support/users/dimisius/) it’s possible to exclude
   files from being minified/combined by using the exclusion options (textareas)
   from _“Settings” -> “Optimize CSS” / “Optimize JavasScript”_ – is that what you
   need? Let me know and I’ll be gladly help you!
 *  [dimisius](https://wordpress.org/support/users/dimisius/)
 * (@dimisius)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/excluding-script-files-from-cache/#post-13656175)
 * Yes you are right. But when I add the path to my js file, it doesn’t work and
   my file ends up in the cache and my script doesn’t get activated
    /wp-content/
   themes/mythemes/assets/js/pitch-detector/vendor/aubiojs/build/(.*?).js
 *  [dimisius](https://wordpress.org/support/users/dimisius/)
 * (@dimisius)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/excluding-script-files-from-cache/#post-13656186)
 * my script works only if I completely deny access to the page I need to your plugin
 *  Plugin Author [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * (@gabelivan)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/excluding-script-files-from-cache/#post-13656220)
 * [@dimisius](https://wordpress.org/support/users/dimisius/) it would be easier
   if I could actually check the website. If you’re not comfortable sharing the 
   URL here, then please send me an email to _support [ at ) assetcleanup – dot –
   com_.
 * PS: Can you try adding “_/wp-content/themes/mythemes/assets/js/pitch-detector/
   vendor/aubiojs/build/_” to “_Do not minify the JavaScript files matching the 
   patterns below (one per line):_” and “_Do not combine the JavaScript files matching
   the patterns below (one per line, see pattern examples below):_” options?
 *  [dimisius](https://wordpress.org/support/users/dimisius/)
 * (@dimisius)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/excluding-script-files-from-cache/#post-13656279)
 * Yes, I add to this field: “Do not minify the JavaScript files matching the patterns
   below (one per line):”, and to this field: “Do not combine the JavaScript files
   matching the patterns below (one per line, see pattern examples below):”, I even
   tried to create a plugin.
    I tried different ways Here are examples of how I 
   indicated the paths: /wp-content/plugins/aubio /wp-content/plugins/aubio/assets/
   aubiojs/build /wp-content/themes/mythemes/assets/js/pitch-detector/vendor/aubiojs/
   build/aubio.js /wp-content/themes/onlinemictest/assets/js/pitch-detector/vendor/
   aubiojs/build

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Excluding Script files from Cache’ is closed to new replies.

 * ![](https://ps.w.org/wp-asset-clean-up/assets/icon-256x256.png?rev=1981952)
 * [Asset CleanUp: Page Speed Booster](https://wordpress.org/plugins/wp-asset-clean-up/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-asset-clean-up/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-asset-clean-up/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-asset-clean-up/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-asset-clean-up/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-asset-clean-up/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)

 * 7 replies
 * 3 participants
 * Last reply from: [dimisius](https://wordpress.org/support/users/dimisius/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/excluding-script-files-from-cache/#post-13656279)
 * Status: resolved