add caching options for xhr requests. if no key was generated, treat it like nocache