• Hi, is there a way to prevent fastest cache from caching my REST API files such as:

    mysite.com/?rest_route=/myapp/v1/assets/javascripts/react-with-addons.min.js

    Unfortunately I am not able to catch that with the regular expressions that I am able to set, since its only considering the URL before the ‘?’ O I believe.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Emre Vona

    (@emrevona)

    Thread Starter Johannes Dato

    (@drflex)

    Hello Emre, thank you for the response. Unfortunately that did not work. All my files are still cached even when excluded with that method.

    It seems to me that fastest cache is still caching the resources because the excluded string is not in the REQUEST_URL but in the parameters.

    http ://www.yoursite.com /05/22/2021/index.html? source=brilliantcampaign
    PROTO – – -HOSTNAME- – – | – – – PATH- – – – – -| – – – -PARAMETERS- – – –

    Example: If I’d want to exclude “brilliantcampaign” in this case would it work?
    – – – -> In my case it doesn’t.

    • This reply was modified 4 years, 11 months ago by Johannes Dato.
    • This reply was modified 4 years, 11 months ago by Johannes Dato.
    • This reply was modified 4 years, 11 months ago by Johannes Dato.
    • This reply was modified 4 years, 11 months ago by Johannes Dato.
    Plugin Author Emre Vona

    (@emrevona)

    no need to exclude anything because a url contains the query string “?”, the url is not cached.

    are you using a server-side cache system?

    Thread Starter Johannes Dato

    (@drflex)

    My own plugin works as a cache for my own files as well – so yes – but not for any other resources in WP so no. Nothing else is in use to cache files.

    The exact error that I get is that after activating fastest cache, an iFrame that is triggered by my plugin can’t access resources from the main site anymore. And instead of getting the file (or in case of an incorrect url the WP default 404 site) I get this message.
    “//File not found”

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

The topic ‘Not Cache REST Api calls with parameters only’ is closed to new replies.