
02-26-2007, 10:49 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
Our rails easy configuration uses 404 handler to forward requests to backend Rails application, if there are both AJAX and non-AJAX version of pages for the same URL, the static version of the page will be served for sure.
To workaround this, you can use a vhost level rewrite rule to detect AJAX call by testing existence of "X-Requested-With" header.
Something like,
Code:
RewriteCond %{HTTP:X-Requested-With} !^$
RewriteRule ^/ /dispatch.lsapi [L]
Last edited by mistwang; 02-26-2007 at 11:12 AM..
|