Jump to content

difference between post and get in ajax?


radha1
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...