Feature Value
Type Detection
Risk -
Covered by Agent

Application is not using HSTS header. HTTP Strict Transport Security (HSTS) is an opt-in security enhancement that is specified by a web application through the use of a special response header. Once a supported browser receives this header, that browser will prevent any communications from being sent over HTTP to the specified domain and will instead send all communications over HTTPS. It also prevents HTTPS click through prompts on browsers.

More information

How to solve it

Use HTTP headers to tell the browser and any intervening proxies not to cache this data. As a minimum, Hdiv Agent expects to see a Cache-Control setting that contains no-store and no-cache. This will alleviate client-side browser caching concerns in modern browsers.

The best way to prevent this issue from occurring in Java EE applications is to add the following setHeader() calls to a servlet filter which is mapped to apply to all pages containing sensitive content:

response.setHeader("Strict-Transport-Security","max-age=31536000; includeSubDomains; preload");