Jump to content
Sign in to follow this  

difference between post and get in ajax?

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.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...