Skip to content

Commit 827b098

Browse files
Tweak text about disabling caching
Signed-off-by: David A. Wheeler <[email protected]>
1 parent af98e3c commit 827b098

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

secure_software_development_fundamentals.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3317,16 +3317,15 @@ When you are delivering web pages you can limit what can be done with the result
33173317

33183318
If your site is publicly accessible, you can easily test your headers using the [Security Headers website](https://securityheaders.com/).
33193319

3320-
If you are serving especially sensitive data, you should *only* serve that data from a few specific pages and completely disable caching of that data (to prevent accidental spills from a cache). The safest way to ensure that caching is disabled is through this set of HTTP headers
3321-
(["How do we control web page caching, across all browsers?"](https://stackoverflow.com/questions/49547/how-do-we-control-web-page-caching-across-all-browsers)):
3320+
If you are serving especially sensitive data, you should *only* serve that data from a few specific web pages and *completely* disable caching of that data on the server, client, and any proxies along the way. Disabling caches prevents accidental spills from a cache. On the server commonly-used systems for caching include memcached and Redis - disable caching of that data when you can. The safest way to ensure that the web browser and web proxy caching is disabled is through this set of HTTP headers (["How do we control web page caching, across all browsers?"](https://stackoverflow.com/questions/49547/how-do-we-control-web-page-caching-across-all-browsers)):
33223321

33233322
~~~~
33243323
Cache-Control: no-cache, no-store, must-revalidate
33253324
Pragma: no-cache
33263325
Expires: 0
33273326
~~~~
33283327

3329-
Some of these settings are only relevant to extremely old browsers. If you only care about current browsers, this setting is enough:
3328+
Some of these settings are only relevant to extremely old browsers. If you only care about current browsers, this HTTP header is enough to disable caching:
33303329

33313330
~~~~
33323331
Cache-Control: no-store, must-revalidate

0 commit comments

Comments
 (0)