Is there a specific purpose for identifying ajax requests by adding a GET parameter (such as 'ajax=1') instead of solely relying on checking the 'X-Requested-With' header on the server side?
This method may be practical if there is uncertainty about whether the client's JS framework passes the header, but are there any benefits if we are certain it does? Are there specific scenarios where this approach could be advantageous?