Making admin-ajax responses static
-
I have a plugin that makes a call to wp-admin/admin-ajax.php, which produces a response utilised to render a google map.
On the static site produced by SS, the google map doesn’t render and looking in via the console I can see that the call to admin-ajax.php is delivering a 404.
So, I set up a 301 redirect of that request to a text file that containing the response of that call (gathered the non-static site). This resolved the 404 although the JS didnt seem to like processing this static file.
I have limited intelligence on this sort of thing and was wondering does anybody have any further clues?
The topic ‘Making admin-ajax responses static’ is closed to new replies.