Thread Starter
workky
(@workky)
I might add, i have disabled W3 Total Cache until i can figure this out. I did add that page to the do not cache and minify section, but it didn’t seem to work
Hello @workky,
I am sorry about the issues you are having with excluding pages and JS files from the cache but I am happy to assist you with this.
To exclude a page from being cached, go to Performance>Page Cache, scroll down to advanced sub box and add the page you want to exclude from the cache in “Never cache the following pages:” field. In your case it should be like this:
wp-.*\.php
index\.php
/accident-doctor-locator/
To exclude JS file from being minified (if Minify is set on Auto) go to Performance>Minify and scroll down to advanced sub-box. add the path of the specific JS file in “Never minify the following JS files:” filed. I.E
wp-content/plugins/yourzipcodeplugin/js/somejs.js
You might want to exclude all other JS and CSS files of the mentioned plugin from being minified which can be done in the same way as mentioned above.
I hope this helps and if you have any other questions please ask away.
Hello @workky,
Just to add, if Yount to exclude certain page from being minified you can do so in performance>minify advanced sub-box, “Never minify following pages” field. With this you can ignore the specified pages / directories. Use relative paths. Omit: protocol, hostname, leading forward slash and query strings.