Class WebHeaderConfig
java.lang.Object
ch.admin.bit.jeap.oauth.mock.server.config.WebHeaderConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionch.admin.bit.jeap.web.configuration.HttpHeaderFilterPostProcessorThe web-config-starter'sAddHeadersFilterapplies a long-livedCache-Control: public, max-age=604800to dynamic endpoints (e.g.
-
Constructor Details
-
WebHeaderConfig
public WebHeaderConfig()
-
-
Method Details
-
noCacheHttpHeaderFilterPostProcessor
@Bean public ch.admin.bit.jeap.web.configuration.HttpHeaderFilterPostProcessor noCacheHttpHeaderFilterPostProcessor()The web-config-starter'sAddHeadersFilterapplies a long-livedCache-Control: public, max-age=604800to dynamic endpoints (e.g./openIdMockServerLogin), causing the login/logout forms and their error responses to be cached by the browser. Removing itsCache-Control/Expiresheaders here lets Spring Security emitno-storeinstead, disabling caching while keeping all the starter's security headers.
-