Ninad Pundalik a écrit :
Hi,
I just tried using a POST Ajax request instead of the GET request that currently retrieves the form for editing privileges. It does show the recently changed permissions correctly.
However, POST requests are meant to be used when we would like to submit changes ([0]), while this is a query that just retrieves some HTML. So, if we use POST, we intend to change something in the database, while we don't do that. Hence, is the use of a random number appended to the end of the GET query a more semantically correct method?
-- [0] - http://en.wikipedia.org/wiki/HTTP_POST#Affecting_server_state
I would say that the random number would be a better approach; however is this caching issue a jQuery issue that can be notified to the jQuery team? Can we control caching behavior?