Mobile app version of vmapp.org
Login or Join
Kimberly868

: Why is Googlebot calling an AJAX method with GET rather than POST? I have an AJAX call on my site that does a POST and returns data. Googlebot is crawling these URLs but it is attempting

@Kimberly868

Posted in: #Ajax #Googlebot #Http

I have an AJAX call on my site that does a POST and returns data. Googlebot is crawling these URLs but it is attempting to use a GET method rather than a POST. This is causing hundreds of 404 error messages appearing in Google Search Console.

Is there a best practice for this? Should I made the method HTTP GET AND POST to remedy these 404 errors?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Kimberly868

2 Comments

Sorted by latest first Latest Oldest Best

 

@LarsenBagley505

GET requests could be seen as unique url. So any bot can access get data more quickly as unique url and judge contents.

You can also cross verify all GET ajax calls againsts request url and desired format.

10% popularity Vote Up Vote Down


 

@Si4351233

Googlebot only performs POST requests under very limited circumstances where it is believed by the Googlebot that it is safe and appropriate. Google takes precautions to avoid performing tasks on a site that could result in executing an unintended user action and Google making POST requests is for crawling purposes only to index what the end user would see.

Google states in its webmasters blog that to make your site better for crawling remember that Google prefers GET for fetching requests unless there is a very specific reason to use POST.

A good rule of thumb to follow is...


A GET request is used to get data from the server.
A POST request is used for modifying data on the server

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme