Maintenance message pages
Alexander Staubo
alex at purefiction.net
Tue Aug 7 01:12:56 MSD 2007
On 8/6/07, Igor Sysoev <is at rambler-co.ru> wrote:
> > Ideally, the first line should say:
> >
> > if (-f $document_root/.maintenance && $http_X_Requested_With ~
> > XMLHttpRequest) {
>
> Why do you test AJAX using header ?
> Can AJAX request separate URI ?
The app has tons of AJAX requests, and the URLs are not predictable.
They don't all start with /ajax, for example. Since all browsers set
X-Requested-With for AJAX calls, this is a surefire way to target such
requests.
Alexander.
More information about the nginx
mailing list