GET vs POST in AJAX?

前端 未结 9 1408
北海茫月
北海茫月 2020-12-01 03:39

Why are there GET and POST requests in AJAX as it does not affect page URL anyway? What difference does it make by passing sensitive data over GET in AJAX as the data is not

9条回答
  •  無奈伤痛
    2020-12-01 04:32

    Another difference between GET and POST is the way caching is handled in browsers. POST response is never cached. GET may or may not be cached based on the caching rules specified in your response headers.

提交回复
热议问题