adding the ability to filter ajax file requests
(cherry picked from commit 285b7ba5370e0d29a89dc80c54d41c59fe9e9b8a)