maxCacheAge type changed to NSTimeInterval