F64 LLAvatarNameCache::nameExpirationFromHeaders(const LLSD& headers) { F64 expires = 0.0; if (expirationFromCacheControl(headers, &expires)) { return expires; } else { // With no expiration info, default to an hour const F64 DEFAULT_EXPIRES = 60.0 * 60.0; F64 now = LLFrameTimer::getTotalSeconds(); return now + DEFAULT_EXPIRES; } }
F64 LLAvatarNameCache::nameExpirationFromHeaders(LLSD headers) { const F64 DEFAULT_EXPIRES = 60.0 * 60.0 + LLFrameTimer::getTotalSeconds(); F64 expires = 0.0; if (expirationFromCacheControl(headers, &expires)) { //AO make sure cache expiration is at least 1HR if (expires < DEFAULT_EXPIRES) {expires = DEFAULT_EXPIRES;} return expires; } else { // With no expiration info, default to an hour //F64 now = LLFrameTimer::getTotalSeconds(); //return now + DEFAULT_EXPIRES; return DEFAULT_EXPIRES; } }