Skip to main content
6 events
when toggle format what by license comment
Jun 15, 2020 at 18:33 vote accept TASan
Jun 15, 2020 at 10:45 answer added mozboz timeline score: 0
Jun 15, 2020 at 10:40 comment added mozboz Yes, the AJAX request should have its own URL that needs to be not cached, which is different to the page that request loads in. Sorry if I'm stating the obvious.
Jun 15, 2020 at 10:34 comment added TASan @mozboz - It's the plugin WP Rocket. It does not cache AJAX-calls by default, but the nonce generated is still cached. We can prevent caching for the specific URL, but then we'll stop caching all product pages in a pretty huge store, so that won't be a solution sadly. I'll look more into the AJAX-part because it sounds like this shouldn't get cached.
Jun 15, 2020 at 10:13 comment added mozboz Sorry if it's an obvious answer, but it sounds like you shouldnt' be caching the Ajax/API call. So is your question how to prevent caching for a specific URL? Do you know what's caching it? Is it the browser, or do you have a caching plugin or CDN or anything else that might be doing the caching?
Jun 15, 2020 at 7:49 history asked TASan CC BY-SA 4.0