|
|
|
@ -694,6 +694,11 @@ public class TomcatServerProperties { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private boolean allowCaching = true; |
|
|
|
private boolean allowCaching = true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Maximum size of the static resource cache. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
private @Nullable DataSize cacheMaxSize; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Time-to-live of the static resource cache. |
|
|
|
* Time-to-live of the static resource cache. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ -707,6 +712,14 @@ public class TomcatServerProperties { |
|
|
|
this.allowCaching = allowCaching; |
|
|
|
this.allowCaching = allowCaching; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public @Nullable DataSize getCacheMaxSize() { |
|
|
|
|
|
|
|
return this.cacheMaxSize; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setCacheMaxSize(@Nullable DataSize cacheMaxSize) { |
|
|
|
|
|
|
|
this.cacheMaxSize = cacheMaxSize; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public @Nullable Duration getCacheTtl() { |
|
|
|
public @Nullable Duration getCacheTtl() { |
|
|
|
return this.cacheTtl; |
|
|
|
return this.cacheTtl; |
|
|
|
} |
|
|
|
} |
|
|
|
|