when checking if should add invalidation for request, workaround for 1.4 where response has no streaming attribute
used .encode("utf-8") for path instead of django smart_text so that python 3.3 wont complain about encoding when hashing