Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Try

...

not

...

to

...

download

...

the

...

same

...

file

...

twice.

...

Improve

...

cache

...

efficiency

...

and

...

speed

...

up

...

downloads.

...

Take

...

standard

...

headers

...

and

...

knowledge

...

about

...

objects

...

in

...

the

...

cache

...

and

...

potentially

...

rewrite

...

those

...

headers

...

so

...

that

...

a

...

client

...

will

...

use

...

a

...

URL

...

that

...

is

...

already

...

cached

...

instead

...

of

...

one

...

that

...

isn't.

...

The

...

headers

...

are

...

specified

...

in

...

RFC

...

6429

...

(Metalink/HTTP:

...

Mirrors

...

and

...

Hashes)

...

and

...

RFC

...

3230

...

(Instance

...

Digests

...

in

...

HTTP)

...

and

...

are

...

sent

...

by

...

various

...

download

...

redirectors

...

or

...

content

...

distribution

...

networks.

...

...

...

When it sees a response with a "Location: ..." header and a "Digest: SHA-256=..."

...

header,

...

it

...

checks

...

to

...

see

...

if

...

the

...

URL

...

in

...

the

...

Location

...

header

...

is

...

already

...

cached.

...

If

...

it

...

isn't,

...

then

...

it

...

tries

...

to

...

find

...

a

...

URL

...

that

...

is

...

already

...

cached

...

to

...

use

...

instead.

...

It

...

looks

...

in

...

the

...

cache

...

for

...

some

...

object

...

that

...

matches

...

the

...

digest

...

in

...

the

...

Digest

...

header

...

and

...

if

...

it

...

finds

...

something,

...

then

...

it

...

rewites

...

the

...

Location

...

header

...

with

...

the

...

URL

...

from

...

that

...

object.

...

That

...

way

...

a

...

client

...

should

...

get

...

sent

...

to

...

a

...

URL

...

that's

...

already

...

cached

...

and

...

the

...

file

...

won't

...

get

...

downloaded

...

again.

...

...

...

...

...

...

...

...

...