Added cache only for get, option and head methods