Vulnerability library
Security checkMay 13, 2024

Missing or Insecure Cache-Control Header

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Web cache or HTTP cache is a system used to optimize web performance. Browsers cache the contents of a resource to reuse it on subsequent requests, which can improve page load times by caching images and other static resources. However, it’s crucial to prevent clients from caching pages that contain sensitive, dynamic, or user-specific content to avoid information disclosure.

Test for Insecure Cache-Control Header Vulnerability with SmartScanner

Donwload FREE!

Recommendation

To prevent caching of sensitive or dynamic content, ensure that the appropriate Cache-Control headers are set. You can use one of the following headers:

  • Cache-Control: no-cache, no-store
  • Cache-Control: max-age=0, must-revalidate
  • Cache-Control: private

References

Could your website be exposed too?

SmartScanner can check your website for Missing or Insecure Cache-Control Header and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated May 13, 2024