isMethodCacheble function
Determines if a given HTTP method should have its responses cached.
By default, only GET and POST methods have their responses cached.
method: The HTTP method to check
Returns true if the method's responses should be cached, false otherwise.
Implementation
bool isMethodCacheble(REQUEST_METHODS method) {
return method == REQUEST_METHODS.GET || method == REQUEST_METHODS.POST;
}