Jump to content

difference between post and get in ajax?


radha1

Recommended Posts

Use POST when you need to send a lot of information to the server, or when there is a chance that the data returned by the server from the same URL will be different every time it is accessed by the same user. Browsers usually cache (store in memory) results returned by a GET request. This allows pages to load very fast after the first time you access them. So it is appropriate when the data does not change (like a normal web page). If the data might changes (like a chat room or a weather report) then POST is better.FWIW, most AJAX developers use POST for all AJAX operations.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...