keycloak-service
静的公開メンバ関数 | 全メンバ一覧
org.keycloak.services.util.CacheControlUtil クラス
org.keycloak.services.util.CacheControlUtil 連携図
Collaboration graph

静的公開メンバ関数

static void noBackButtonCacheControlHeader ()
 
static CacheControl getDefaultCacheControl ()
 
static CacheControl noCache ()
 

詳解

著者
Stian Thorgersen

関数詳解

◆ getDefaultCacheControl()

static CacheControl org.keycloak.services.util.CacheControlUtil.getDefaultCacheControl ( )
inlinestatic
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 ( )
inlinestatic
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 ( )
inlinestatic
48  {
49 
50  CacheControl cacheControl = new CacheControl();
51  cacheControl.setMustRevalidate(true);
52  cacheControl.setNoCache(true);
53  cacheControl.setNoStore(true);
54 
55  return cacheControl;
56  }

このクラス詳解は次のファイルから抽出されました: