There are plugins that can help you with this, but they aren’t foolproof. My suggestion is W3 Total Cache, you should be able to exclude necessary files from the cache from there. Your best solution, however is to do caching on the serverside level as you will see better performance that way.
Related Posts:
- wp_set_auth_cookie() doesn’t work in Ajax call
- Nonces and Cache
- AJAX vs Fragment Caching for W3 Total Cache [closed]
- WordPress Ajax Login without page reload
- Woocommerce Ajax Add cart not working
- Why a strange discrepency between get_current_user_id() when using AJAX versus output of document.cookie?
- Caching-Plugins and Ajax-Page-Parts
- SSO autologin WordPress + Ajax
- Cache wp-json/posts without a plugin?
- How can I set cookies on both secure and non-secure origins at the same time?
- How to handle cookies from a WordPress plugin on a cached page?
- Cache plugins and ajax nonce verification
- Prevent AJAX caching from plugin
- Ajax login fails: script sets cookies, but is_user_logged_in() returns false
- admin-ajax.php 403 errors – no caching, permissions are fine
- Manually cache a special, non-WP-but-using-WP page (e.g. Ajax results) with W3TC
- PHP cookie not set within AJAX call
- Why are the most recent posts not appearing in a fetch request, unless I’m logged in?
- jQuery’s .on() method combined with the submit event
- Why use admin-ajax.php and how does it work?
- Why is die() used at the end of function that handles an Ajax request?
- Making my AJAX powered WordPress Crawlable
- WordPress Ajax Data Security
- admin-ajax.php doesn’t work when using POST data and Axios
- Custom Form with Ajax
- How to process ajax requests correctly using ajax plugins
- How is it possible that the function of the test page works, but it does not go live?
- jQuery Autocomplete not working with wp_localize_script
- Ajax returning correct data BUT at wrong place
- get_posts empty when called via Ajax
- admin-ajax.php mixed content
- WP-API and Basic Auth returning 403 on POST but not GET
- Is there a hook to process a backbone restful PUT request inside wordpress?
- How to localized one js file for different actions?
- Call javascript function when category was added via ajax
- json encode not work in wordpress
- wordpress and add actions to button by coding
- Get Author Post on author.php with AJAX
- Ajax in plugin settings page returns 400 Bad Request
- How to combine wordpress_logged_in cookies in one cookie?
- Admin-Ajax Error
- WordPress Ajaxify Problem with Scroll-to [closed]
- Stop ajax listener from sending empty parameter to function
- Can’t trigger an AJAX function with a submit button in the dashboard
- How to make registration form ajax?
- Specify ABSPATH in jQuery url
- WordPress action – Pass arguments into action in an AJAX call?
- 403 error When i send ajax request on WordPress website
- Ajax Call 400 Bad Request error with POST request but not with GET request
- While Ajax is working well, media upload isn’t showing the imagines
- How can I call an api before user login
- Problems with wordpress nonces in Ajax call
- Get post content and show it in a div
- why does not work ajax that add_action registered in wordpress
- How to get post from pure frontend AJAX (using only post ID)?
- Auto load subcategories content with ajax
- Multiple AJAX requests using the same ajax_object.ajaxurl
- Is there a better way to access transients using javascript
- Filter custom post types by custom field using AJAX
- Refresh loop of custom posts (div) after new post is published
- Use ajax request to load sidebar
- How to change request URL?
- Why the wp_localize_script() does not work correct in my case? ( /wp-admin/admin-ajax.php 400 (Bad Request) )
- Updating failed. The response is not a valid JSON response. specific to my browser when I include javascript in my html
- Zip Files from custom fields
- Should wordpress nonce be placed in html form or in javascript file
- Ajax call returning 0 in page template
- how to make sure js is enabled before executing php function
- ERROR while passing data from JS to PHP via AJAX
- ajax load more instead of pagination
- jQuery AJAX url wit variable
- How to pass array from jQuery to PHP with AJAX in WordPress?
- Using existing ajax data that is loaded into page
- How to force the admin-ajax.php file to load over HTTPS?
- Unable to ajax request with meta_query
- get_body_class() in ajax envrionment
- Ajax WordPress pass post URLs
- How To Pass Theme Path In Javascript Ajax to Pass Id On another Page in WordPress Custom Page Template?
- admin-ajax.php not working properly on subdomains
- AJAX action returning empty posts array?
- Infinite Scroll
- Cannot add multiple single images at once
- WordPress Ajax JSON success return no being recognized
- Session variables lost during Ajax calls – WordPress – Sage Starter Theme
- WordPress page content only in fancybox except direct click
- Ajax takes 10x as long as it should/could
- While doing ajax, WordPress returning internal server error 500 and stating that my theme functions are undefined
- SHORTINIT and sessions
- How to use AJAX to check if user is still logged-in?
- Ajax navigation and scripts loaded only on certain pages
- Closing ajax function file with die() causes error and empty page
- How to load wordpress sidebar using AJAX [duplicate]
- ajax page template
- apply_filters, EMBEDS and AJAX not a friends? [duplicate]
- Using Javascript Callback from plugin in a theme
- Why does my Ajax Get request give a 400 bad request?
- $wpdb Ajax not redirecting to main page
- how reduce fetch/XHR response time
- wordpress ajax bad request 400
- Custom WP rest api endpoint only working on non https?