fix 0-byte response race-condition with file cache

write file cache to tmp file and move into place when done writing
don't pass crushinator query strings to origin