在此视频循环中:
@Configuration
@EnableWebSecurity
public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired
GenericFilterBean statelessAuthFilter;
@Autowired
AbstractAuthenticationProcessingFilter statelessLoginFilter;
public SecurityConfig(){
}
@Override
protected void configure(HttpSecurity http) throws Exception {
http
.authorizeRequests()
.antMatchers("/one**", "/two**").access("hasRole('ONE')")
.antMatchers("/login").permitAll()
.anyRequest().authenticated()
.and()
.addFilterBefore(statelessAuthFilter, GenericFilterBean.class)
.addFilterBefore(statelessLoginFilter, BasicAuthenticationFilter.class)
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)
.and().anonymous()
.and().csrf().disable();
}}
我在Chrome控制台中注意到文件一旦完成播放就会重新加载(这很好,我有<video muted id="sensi-video" loop="loop" preload="auto" class="video-playing"
autoplay="autoplay" poster="<?php echo $poster; ?>">
,但我无法确定是否不是文件每次都从服务器加载,或者它是否只是从用户的缓存中重新加载。有没有办法让我确定这个?
HTTP状态代码为206。