in my situation i have four way to solve my problem:
index.html
and disable caching (doesn\'t work for me)
You can selectively add no cache headers to just index.html using Spring Security xml configuartion like this:
[intercept-url, etc omitted...]
However, the usual pattern if using Spring Security is to set no cache by default to all pages, and then selectively turn those headers off for static resources that
To accomplish this feat, you have to explicitly define all headers you wish to apply in both cases, and select the pages via complementary request matcher patterns. For example, in an app where static, cacheable resources are found under /static
and its subdirectories, and all dynamic pages mapped to controllers have the .htm
extension, you can use this configuration:
[...]