W3C home > Mailing lists > Public > ietf-http-wg@w3.org > October to December 2016

Re: ID for Immutable

From: Kari Hurtta <hurtta-ietf@elmme-mailer.org>
Date: Sat, 29 Oct 2016 08:30:39 +0300 (EEST)
Message-Id: <201610290530.u9T5UdPo021797@shell.siilo.fmi.fi>
To: Patrick McManus <pmcmanus@mozilla.com>, HTTP working group mailing list <ietf-http-wg@w3.org>
CC: Kari Hurtta <hurtta-ietf@elmme-mailer.org>, Alex Rousskov <rousskov@measurement-factory.com>
Kari Hurtta <hurtta-ietf@elmme-mailer.org>: (Fri Oct 28 18:12:15 2016)
> Patrick McManus <pmcmanus@mozilla.com>: (Fri Oct 28 17:50:16 2016)
> > the notion of integrity hashes have failed in the past (notably md5)..

And anyway even MD5 is good enough for this purpose. Something like
crc32 is not. For avoid making truncations immutable also resource
length in bytes is good enough for this purpose.

Server still known length of resource for a 2-hour video of the 1948
Olympics opening ceremony (using example of Alex Rousskov).

Server does not know resource length in bytes when it generates
response from database dynamically (in these cases also
content-length is not used but chunked transfer-encoding)

( Assuming that you do not put Cache-Control to
  trailer of chunked transfer-encoding. In that
  case also calculating hash of response is not 
  really expensive part here.
)

My favorite test query produces about 24 gigabytes answer 
(if I remember correctly). Yes, some variations
of this may be immutable, but I'm not sure that 
"immutable" cache-control is very usefull here.

( These have nice property that any 32 bit counters
  wrap several times and loading that answer takes
  several hours. 
)

> > separable from immutable imo and would rather not tie that anchor to its
> > fate.
> 
> That why I wrote "Several immutable cache controls are invalid if they are result
> of same hash-function" implying that hash-function is detectable
> from result of function (Either by size or something like multihash
> https://github.com/multiformats/multihash).
> 
> > > So that immutable does not have effect if result of hash-function
> > > does not give same value that what is value of immutable
> > > cache control.
> > >
> > > Several immutable cache controls are invalid if they are result
> > > of same hash-function.

/ Kari Hurtta
Received on Saturday, 29 October 2016 05:31:21 UTC

This archive was generated by hypermail 2.3.1 : Saturday, 29 October 2016 05:31:22 UTC