set response.from_cache before calling hooks

Otherwise the `make_throttle_hook` example in the docs doesn't work.