Cacheing on client side is now working.
Made it easier to specify max results for client side cacheing.