If a file is too big to be cached, return the original resource not the CacheResource instance else the resource content will still be cached.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1549704 13f79535-47bb-0310-9956-ffa450edef68
Use an int for the maximum object size to be cached in bytes since it is cached using a byte array and that is limited to Integer.MAX_VALUE.
Test objects to be cached against the maximum object size, not the maximum cache size.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1549706 13f79535-47bb-0310-9956-ffa450edef68
Simplify assuming that the resources implementation will generate an InputStream from the cached byte array if one is available.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1549711 13f79535-47bb-0310-9956-ffa450edef68