Prevent storing cache objects if expire is non-positive (caching disable...

This disables storing cache files if caching is disabled (expiry < 1).