etsted Posted April 6, 2014 Share Posted April 6, 2014 in w3schools it says that i have to use POST when A cached file is not an option (update a file or database on the server). What does that mean? Link to comment Share on other sites More sharing options...
davej Posted April 6, 2014 Share Posted April 6, 2014 I guess that caveat applies when you are retrieving entire files as shown in the GET request examples? http://www.w3schools.com/ajax/ajax_xmlhttprequest_send.asp Link to comment Share on other sites More sharing options...
etsted Posted April 6, 2014 Author Share Posted April 6, 2014 what does it mean by saying "when a cached file is not an option"? Link to comment Share on other sites More sharing options...
davej Posted April 6, 2014 Share Posted April 6, 2014 I believe they mean cache avoidance, to avoid stale data, just as when it says... In the example above, you may get a cached result. To avoid this, add a unique ID to the URL: Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now