Is there a difference between an AJAX request and a direct browser request (in terms of how a web page is called and loaded)?
In other words, I mean: is a direct server-side request handled in any way differently than a client-side request (initiated by the browser)?
An AJAX request is identical to a “normal” browser request as far as the server is concerned other than potentially slightly different HTTP headers. e.g. chrome sends:
I’m not sure if that header is standardized or not, or if it’s different in every browser or even included at all in every browser.
edit: I take that back, that header is sent by jQuery (and likely other JS libraries), not the browser as is evidenced by:
which sends:
which leads me to the conclusion that by default there is absolutely no difference.