this.saveExpirationHeaders = false;
try {
if (getExpireCache(0) == GWCVars.CACHE_USE_WMS_BACKEND_VALUE) {
if (backendExpire == -1) {
this.expireCacheList.set(0, new ExpirationRule(0, 7200));
log.error("Layer profile wants MaxAge from backend,"
+ " but backend does not provide this. Setting to 7200 seconds.");
} else {
this.expireCacheList.set(backendExpire, new ExpirationRule(0, 7200));
}
log.trace("Setting expireCache to: " + expireCache);
}
if (getExpireCache(0) == GWCVars.CACHE_USE_WMS_BACKEND_VALUE) {
if (backendExpire == -1) {
this.expireClientsList.set(0, new ExpirationRule(0, 7200));
log.error("Layer profile wants MaxAge from backend,"
+ " but backend does not provide this. Setting to 7200 seconds.");
} else {
this.expireClientsList.set(0, new ExpirationRule(0, backendExpire));
log.trace("Setting expireClients to: " + expireClients);
}
}
} catch (Exception e) {