Serve static HTML files for AJAX requests
-
I want to use a caching plugin (any can do, WP Fastest Cache seems like a good choice).
What I want is that the plugin handles AJAX calls as normal pages, so that for each call, a file with the response is saved to disk (and added to .htaccess).
When the next time a user requests the same AJAX filtering (because that’s what I’m using it for right now); the server will serve the static html file saved from cache.It requires from my knowledge:
1. handling AJAX calls as pages, thus making it possible to cache the full html
2. using the AJAX call parameters (per ex. filtering, or sorting; like Color=blue, Price=Asc) for the different pages (e.g. the different html files
3. adding to .htaccess to intercept client ajax requests and serve the static html insteadIs such thing possible?
- The topic ‘Serve static HTML files for AJAX requests’ is closed to new replies.