• I have “Prevent caching of objects after settings change” checked because there is just one folder where I want query strings. So, I’m trying to prevent them in the rest of the site with a list in the “Prevent caching exception list” box. (It would be nice if there were an opposite setting, where you could just enable it for certain folders.)

    But it doesn’t seem to be working in all cases. For example, I have:
    https://www.mysite.com/wp-includes/*
    on one line (with my real site url, of course). But gtmetrix.com is listing some files in that folder that are having query strings attached. The same is true for some other folders I’ve excluded from the rule.

    Also, this doesn’t work at all, but shouldn’t it? */wp-includes/*

    Thanks for any help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Just use:

    /wp-includes/

    Notice i dropped the “*”. You are using regex incorrectly.

    Kim

    Thread Starter jamminjames

    (@jamminjames)

    Okay, thanks. I would like to exclude a folder from the rule, so that it DOES get query strings. Would this do it?
    -*/folder/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Regular expressions not working in Browser Cache section’ is closed to new replies.