Attempting to answer this question directly: if the data you are returning is exactly the same each time, you can send cache control / expires headers with your AJAX response so that the browser knows not to request again for a while.
// ask the browser to cache this response, to reduce requests
$expires = 60 * 15; // 15 minutes
header('Pragma: public');
header('Cache-Control: maxage=" . $expires);
header("Expires: ' . gmdate('D, d M Y H:i:s', time() + $expires) . ' GMT');
But if you want different data each time, which it sounds like you do (via paging), then caching does nothing for you here. This answer on your other question explains why you would be better off grabbing small chunks at a time.
Related Posts:
- Ajax takes 10x as long as it should/could
- Minimal WordPress load for only `get_option` to work (because ajax…)
- Async Loading of Custom Posts
- admin-ajax.php slows down, but cant figure out which plugin
- Load WP content with ajax less server demanding and faster than normal page loading?
- Performance optimization of tree like structure
- AJAX – SHORTINIT set to TRUE returns blank
- Tabbed feeds with ajax vs. without on homepage [closed]
- Disabling ajax code that does a POST request that ends in a 400 error code
- Content including hooks inside wp-settings.php are being called twice in WordPress
- Ajax takes 10x as long as it should/could
- Ajax take too long to return code
- Speeding up admin-ajax.php
- ASP.NET MVC controller actions that return JSON or partial html
- Ajax in a settings page (update_option is undefined)
- gettext does not translate when called in ajax
- Execute one AJAX request after another AJAX request finished
- Ajax and autocomplete
- admin-ajax.php vs Custom Page Template for Ajax Requests
- Load tinyMCE / wp_editor() via AJAX [duplicate]
- Automatically pull newer posts and append to current page.
- AJAX Implementation
- how to use ajax in plugin admin area?
- Load page content with AJAX using Fancybox?
- Dynamically changing navigation links (next and previous) via AJAX
- jQuery UI Autocomplete showing all results
- AJAX action not triggering PHP function
- Ajaxing in functions.php
- add_action and Ajax
- Enqueue script dinamically
- Most performant way of fetching remote API data?
- Admin-ajax responds with 0 due to empty $_REQUEST
- Help with AJAX front end comment moderation
- Enqueue script in header
- wp_ajax_nopriv_xxx is not firing on one site, works on all others. -1 for logged out users
- Ajax Modal Flickers When Opened Multiple Times
- Increased CPU load due to admin-ajax.php spam
- Ajax image upload with media_handle_upload and form.js
- Can’t get result from sql using ajax result
- Theme Customizer – Conditional Controls
- Edit a different page in WP Customizer
- Caching-Plugins and Ajax-Page-Parts
- Ajax loading duplicate post
- WordPress AJAX – how to return true or false in the callback function
- WordPress Ajax POST Error 403 admin-ajax.php
- How do I detect in which page ajax_query_attachments_args is loaded?
- Ajax post returning full html page as response
- Which allowed API hooks work to add wp_ajax action?
- Pass additional parameter with async upload
- Ajax store response json in variables
- WordPress search results with Ajax, get_post_type() not working
- Variable Products Being Added to Cart with AJAX on Shop and Category Pages
- Audio TAG Not using MediaElement When Page is loaded through ajax
- Is it secure to use admin-ajax.php in front?
- Best way to use ajax front-end?
- Ajax calls from the theme directory
- How to pass parameters from jQuery ajax into PHP function?
- ajax is returning 0
- How to add ajax url to js using wp_add_inline_script()?
- merge wp rest api query to get posts per category does not work
- use jQuery.load() to include a php file in a div, wp_query() is part of php file
- WP AJAX post filter > do something with empty value
- Load more posts in the same category – Ajax + Timber
- How to jQuery Ajax show new data from successful insert?
- Redirect after saving form; and yet use wp_die()
- ajaxt returning object object [closed]
- Load more posts (Ajax) in tabbed sidebar on single.php
- Something strange with ajax
- admin-ajax.php returns 0 even when the post status code is 200 OK
- Why is the file not uploading to the server?
- Get localize of a loaded javascript
- Merge PDF files from post custom fields(ACF) into one PDF file and respond back the created PDF file, WordPress(AJAX Request)
- REST public POST giving 403 forbidden nginx
- Query data after an Ajax insert
- How to get next and previous post into ajax formed modal windows?
- Is there a public ajax endpoint?
- Why Ajax Doesn’t Work?
- How can i do public ajax call?
- How to prevent multiple post with same meta value being created simultaneously in WordPress (with ajax)
- Problem when sending file via ajax
- wp_verify_nonce not working on the mobile device
- Can’t GET Variable from AJAX URL
- JS global variable doesn’t update
- 404 error custom post type rest api
- How to update cart total after AJAX success
- Change button text after ajax db update
- Jquery wrap permalink in a data-attribute?
- How do I display posts of a specific day?
- Load .php file into div using ajax
- Native WordPress Video Shortcode Not Working After Post is Loaded via Ajax
- Ajax Function call is always returning 0 in front end(without plugin) [closed]
- AJAX Post from same domain to a wordpress page
- Using AJAX for dynamic settings pages
- admin ajax is not working for non logged in users
- wp_localize_script not create variable in head section
- AJAX admin Internal 500 error Failed to Upload
- Class property not visible inside ajax callback function?
- $wpdb Ajax not redirecting to main page
- how reduce fetch/XHR response time
- Custom WP rest api endpoint only working on non https?