make sure cache is not set when ajax fails
Merge pull request #93 from madglory/failed-requests-tests

make sure cache is not set when ajax fails