Fórum Problemas com Cache control headers Spring security #590364
08/01/2018
0
Bom dia,
Pessoal tenho uma aplicação java com spring security, a mesma não está fazendo cache dos arquivos js/css.
Minha configuração do spring security está assim.
Pessoal tenho uma aplicação java com spring security, a mesma não está fazendo cache dos arquivos js/css.
Minha configuração do spring security está assim.
@Override
protected void configure(HttpSecurity http) throws Exception {
http
.headers()
.and()
.csrf()
.disable()
.authorizeRequests()
.antMatchers("/resources/**").permitAll()
.antMatchers("/login").permitAll()
.antMatchers("/cadastro/**").access(getPermissao("Cadastro"))
.antMatchers("/financeiro/**").access(getPermissao("Financeiro"))
.antMatchers("/faturamento/**").access(getPermissao("Faturamento"))
.antMatchers("/administrador/**").access(getPermissao("Administrador"))
.antMatchers("/atendimento/**").access(getPermissao("Atendimento"))
.antMatchers("/controleEstoque/**").access(getPermissao("ControleEstoque"))
.antMatchers("/relatorio/**").access(getPermissao("Relatorio"))
.anyRequest().authenticated()
.and()
.formLogin()
.loginPage("/login")
.defaultSuccessUrl("/index")
.failureUrl("/login?auth=false")
.permitAll()
.and()
.logout()
.logoutRequestMatcher(new AntPathRequestMatcher("/logout"))
.logoutSuccessUrl("/login")
.and()
.exceptionHandling()
.accessDeniedPage("/403")
.and()
.sessionManagement()
.maximumSessions(getMaxSession())
.expiredUrl("/expired")
.maxSessionsPreventsLogin(true)
.sessionRegistry(sessionRegistry());
}Maik Rabelo
Curtir tópico
+ 1
Responder
Clique aqui para fazer login e interagir na Comunidade :)