• Resolved nowton

    (@nowton)


    We currently experience issues when using AO with Download Monitor. Caching should be excluded on ‘/download/’. We tried adding this to CSS exclusion, but this does not work. How would we properly exclude this folder from caching? Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Middag nowton;
    First of all a clarification; AO does NOT do page caching, so if “download monitor” advises to exclude the folder from caching, you’ll probably need to do so in your page cache configuration if you have that (could be at plugin, server/ host or 3rd party level).

    If you need JS/ CSS optimization not to be active on /download/ (due to layout or javascript issues), then you can use this code snippet;

    add_filter('autoptimize_filter_noptimize','nowton_noptimize',10,0);
    function nowton_noptimize() {
    	if (strpos($_SERVER['REQUEST_URI'],'download/')!==false) {
    		return true;
    	} else {
    		return false;
    	}
    }

    Hope this helps!

    Groeten uit Belgi?,
    frank

    Thread Starter nowton

    (@nowton)

    Bedankt! Thanks, will investigate further and try the code snippet as well.

    Thread Starter nowton

    (@nowton)

    Path issues prevented downloads from happening, so proved to be totally unrelated. Thanks again for a wonderful plugin!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome, feel free to leave a review of the plugin and support here! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Exclude folder’ is closed to new replies.