Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Exclude from JS cache and optimization › Reply To: Exclude from JS cache and optimization
April 28, 2023 at 12:16 pm
#42339
Keymaster
Hi,
The javascript files are generated on the fly depending what search features are enabled on the given page, and if the file system supports it then they are cached and enqueued in a single file.
The file names are hashed, but if you can exclude directories too, then you can try excluding these:
/wp-content/cache/asp/
/wp-content/plugins/ajax-search-pro/js/
These are the only two sources where the javascript files for the plugin should be originated from. Excluding these directory matches should exclude them from optimization.