added a new helper method to response - setCacheValidity()
small changes