JDK-6551958 : Java SE 6 doc inaccuracies regarding no-cache and no-store
  • Type: Bug
  • Component: docs
  • Sub-Component: guides
  • Affected Version: 6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2007-05-01
  • Updated: 2011-02-02
  • Resolved: 2007-11-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u4 b07Fixed 7Fixed
Description
Reported by ###@###.###
In http://java.sun.com/javase/6/docs/technotes/guides/javaws/enhancements6.html
"The <no-cache> directive is now honored. If a downloaded resource
contains the no-cache directive, it will not be put in the cache"

Commented by ###@###.###
This is not correct. It should be "no-store" instead:
If a downloaded resource contains the no-store directive, it will not be put in the cache.

Reported by ###@###.###
In http://www.java.com/en/download/help/6000070100.xml
"The no-cache directive is now supported. When the no-cache directive
is used, an update check is made to make sure the cached contents are
same as at the URL. The resource is then downloaded into the cache and
the expiration field is ignored. "

Commented by ###@###.###
This is almost correct. no-cache means the cached contents cannot be
used without revalidation. So if cached content is available, an update
check will be made to ensure the server copy is the same as the cached
copy. If so, cached copy can be used. If not, server copy will be
downloaded. Expiration field is ignored, which means that even if the
cached resource is not expired, update check will still be performed.

Comments
EVALUATION Fixed this bug in the deployment guides. It will be up on jsc within 24 hours. - Jacob Royal
16-11-2007

EVALUATION I am gathering inputs from Thomas right now. I will fix it.
08-05-2007