Disabling Spring Security headers does not work
问题 I need to disable the cache control headers in my Spring Security conf. According to the documentation a simple http.headers.disable() should do it, but I still see the Cache-Control:no-cache, no-store, max-age=0, must-revalidate Expires:0 Pragma:no-cache headers in responses. My current security config is: http.antMatcher("/myPath/**") // "myPath" is of course not the real path .headers().disable() .authorizeRequests() // ... abbreviated .anyRequest().authenticated(); Things I've tried so