Code: Unique URIs

Chapter 8 - Ajax Optimization

To make it unique, you could just append a query string such as say hello. php?ts=unique-value. A simple way to do this would be to use a timestamp such as the one illustrated in this code fragment:

var ts = "ts=" + (new Date( )).getTime( );
sendRequest("sayhello.php", ts);