Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/HtmlUnit/htmlunit
/ getCache
Method
getCache
src/main/java/org/htmlunit/WebClient.java:2144–2146 ·
view source on GitHub ↗
Gets the cache currently being used. @return the cache (may not be null)
()
Source
from the content-addressed store, hash-verified
2142
* @
return
the cache (may not be null)
2143
*/
2144
public
Cache getCache() {
2145
return
cache_;
2146
}
2147
2148
/**
2149
* Sets the cache to use.
Callers
15
maxSizeMaintained
Method · 0.95
cssIsCached
Method · 0.95
cssIsCachedIfUrlWasRedirected
Method · 0.95
cssFromCacheIsUsed
Method · 0.95
cssManuallyAddeToCache
Method · 0.95
testNoStoreCacheControl
Method · 0.95
testNoCacheCacheControl
Method · 0.95
testMaxAgeCacheControl
Method · 0.95
testSMaxageCacheControl
Method · 0.95
testExpiresCacheControl
Method · 0.95
testMaxAgeOverrulesExpiresCacheControl
Method · 0.95
testReloadAfterRemovalFromCache
Method · 0.95
Calls
no outgoing calls
Tested by
12
maxSizeMaintained
Method · 0.76
cssIsCached
Method · 0.76
cssIsCachedIfUrlWasRedirected
Method · 0.76
cssFromCacheIsUsed
Method · 0.76
cssManuallyAddeToCache
Method · 0.76
testNoStoreCacheControl
Method · 0.76
testNoCacheCacheControl
Method · 0.76
testMaxAgeCacheControl
Method · 0.76
testSMaxageCacheControl
Method · 0.76
testExpiresCacheControl
Method · 0.76
testMaxAgeOverrulesExpiresCacheControl
Method · 0.76
testReloadAfterRemovalFromCache
Method · 0.76