keycloak
org
keycloak
services
util
CacheControlUtil
静的公開メンバ関数
|
全メンバ一覧
org.keycloak.services.util.CacheControlUtil クラス
org.keycloak.services.util.CacheControlUtil 連携図
静的公開メンバ関数
static void
noBackButtonCacheControlHeader
()
static CacheControl
getDefaultCacheControl
()
static CacheControl
noCache
()
詳解
著者
Stian Thorgersen
関数詳解
◆
getDefaultCacheControl()
static CacheControl org.keycloak.services.util.CacheControlUtil.getDefaultCacheControl
(
)
inline
static
36
{
37
CacheControl cacheControl =
new
CacheControl();
38
cacheControl.setNoTransform(
false
);
39
Integer maxAge = Config.scope(
"theme"
).getInt(
"staticMaxAge"
);
40
if
(maxAge != null && maxAge > 0) {
41
cacheControl.setMaxAge(maxAge);
42
}
else
{
43
cacheControl.setNoCache(
true
);
44
}
45
return
cacheControl;
46
}
◆
noBackButtonCacheControlHeader()
static void org.keycloak.services.util.CacheControlUtil.noBackButtonCacheControlHeader
(
)
inline
static
31
{
32
HttpResponse response = ResteasyProviderFactory.getContextData(HttpResponse.class);
33
response.getOutputHeaders().putSingle(
"Cache-Control"
,
"no-store, must-revalidate, max-age=0"
);
34
}
◆
noCache()
static CacheControl org.keycloak.services.util.CacheControlUtil.noCache
(
)
inline
static
48
{
49
50
CacheControl cacheControl =
new
CacheControl();
51
cacheControl.setMustRevalidate(
true
);
52
cacheControl.setNoCache(
true
);
53
cacheControl.setNoStore(
true
);
54
55
return
cacheControl;
56
}
このクラス詳解は次のファイルから抽出されました:
D:/AppData/doxygen/keycloak/src/keycloak/src/main/java/org/keycloak/services/util/
CacheControlUtil.java
2018年10月29日(月) 00時36分05秒作成 - keycloak / 構成:
1.8.13