<s>
The	B-Language
cache	I-Language
manifest	I-Language
in	I-Language
HTML5	I-Language
was	O
a	O
software	O
storage	O
feature	O
which	O
provided	O
the	O
ability	O
to	O
access	O
a	O
web	B-Application
application	I-Application
even	O
without	O
a	O
network	O
connection	O
.	O
</s>
<s>
Using	O
any	O
of	O
the	O
offline	B-Application
Web	I-Application
application	I-Application
features	O
at	O
this	O
time	O
is	O
highly	O
discouraged	O
and	O
use	O
of	O
service	O
workers	O
is	O
recommended	O
instead	O
.	O
</s>
<s>
It	O
should	O
be	O
distinguished	O
from	O
web	B-Application
application	I-Application
manifests	O
,	O
a	O
JSON-based	O
file	O
format	O
which	O
is	O
part	O
of	O
the	O
progressive	B-Application
web	I-Application
app	I-Application
technology	O
,	O
and	O
is	O
currently	O
active	O
and	O
going	O
through	O
the	O
standardization	O
process	O
at	O
the	O
W3C	O
.	O
</s>
<s>
Web	B-Application
applications	I-Application
consist	O
of	O
web	O
pages	O
that	O
need	O
to	O
be	O
downloaded	O
from	O
a	O
network	O
.	O
</s>
<s>
HTML5	B-Application
provides	O
the	O
ability	O
to	O
access	O
the	O
web	B-Application
application	I-Application
even	O
without	O
a	O
network	O
connection	O
using	O
the	O
cache	B-Language
manifest	I-Language
.	O
</s>
<s>
Web	B-Application
applications	I-Application
consist	O
of	O
resources	O
identified	O
by	O
URLs	O
.	O
</s>
<s>
These	O
can	O
be	O
HTML	B-Language
,	O
CSS	B-Language
,	O
JavaScript	B-Language
,	O
images	O
or	O
any	O
other	O
source	O
that	O
is	O
required	O
for	O
a	O
web	B-Application
application	I-Application
to	O
be	O
rendered	O
.	O
</s>
<s>
Their	O
addresses	O
can	O
be	O
copied	O
into	O
a	O
manifest	O
file	O
,	O
which	O
can	O
be	O
updated	O
regularly	O
by	O
the	O
author	O
of	O
the	O
web	B-Application
application	I-Application
,	O
indicating	O
any	O
new	O
web	O
addresses	O
that	O
are	O
added	O
or	O
deleted	O
.	O
</s>
<s>
When	O
connecting	O
to	O
a	O
network	O
for	O
the	O
first	O
time	O
,	O
a	O
web	O
browser	O
will	O
read	O
the	O
HTML5	B-Application
manifest	O
file	O
,	O
download	O
the	O
resources	O
given	O
and	O
store	O
them	O
locally	O
.	O
</s>
<s>
Then	O
,	O
in	O
the	O
absence	O
of	O
a	O
network	O
connection	O
,	O
the	O
web	O
browser	O
will	O
shift	O
to	O
the	O
local	O
copies	O
instead	O
and	O
render	O
the	O
web	B-Application
application	I-Application
offline	O
.	O
</s>
<s>
In	O
order	O
for	O
the	O
offline	O
applications	O
to	O
work	O
,	O
a	O
cache	B-Language
manifest	I-Language
file	O
must	O
be	O
created	O
by	O
the	O
web	O
developer	O
.	O
</s>
<s>
If	O
the	O
web	B-Application
application	I-Application
exceeds	O
more	O
than	O
one	O
page	O
then	O
each	O
page	O
must	O
have	O
a	O
manifest	O
attribute	O
that	O
points	O
to	O
the	O
cache	B-Language
manifest	I-Language
.	O
</s>
<s>
The	O
cache	B-Language
manifest	I-Language
file	O
is	O
a	O
text	O
file	O
located	O
in	O
another	O
part	O
of	O
the	O
server	O
.	O
</s>
<s>
The	O
attribute	O
manifest	O
=	O
"	O
<path>	O
"	O
must	O
be	O
added	O
to	O
the	O
html	B-Language
element	O
in	O
order	O
for	O
the	O
cache	B-Language
manifest	I-Language
file	O
to	O
work	O
.	O
</s>
<s>
Consider	O
the	O
HTML	B-Language
file	I-Language
given	O
below	O
.	O
</s>
<s>
The	O
<html>	O
element	O
indicates	O
a	O
file	O
named	O
cache.appcache	O
will	O
contain	O
the	O
list	O
of	O
resources	O
(	O
i.e.	O
,	O
test.js	O
,	O
test.css	O
)	O
needed	O
for	O
this	O
web	O
page	O
to	O
work	O
offline	O
.	O
</s>
<s>
Common	O
names	O
for	O
this	O
file	O
are	O
cache.manifest	O
and	O
manifest.appcache	O
.	O
</s>
<s>
The	O
manifest	O
file	O
must	O
start	O
with	O
the	O
line	O
CACHE	B-Language
MANIFEST	I-Language
.	O
</s>
<s>
Given	O
below	O
is	O
an	O
example	O
of	O
a	O
cache	B-Language
manifest	I-Language
file	O
.	O
</s>
<s>
This	O
manifest	O
file	O
lists	O
three	O
resources	O
:	O
a	O
CSS	B-Language
file	O
,	O
a	O
JavaScript	B-Language
file	O
and	O
a	O
PNG	O
image	O
.	O
</s>
<s>
When	O
the	O
above	O
file	O
is	O
loaded	O
,	O
the	O
browser	O
will	O
download	O
the	O
test.css	O
,	O
test.js	O
and	O
test.png	O
files	O
from	O
the	O
root	O
directory	O
in	O
the	O
web	O
server	O
.	O
</s>
<s>
Cache	B-Language
manifests	I-Language
can	O
also	O
use	O
relative	O
paths	O
or	O
even	O
absolute	O
URLs	O
as	O
shown	O
below	O
.	O
</s>
<s>
The	O
cache	B-Language
manifest	I-Language
file	O
consists	O
of	O
three	O
section	O
headers	O
.	O
</s>
<s>
Explicit	O
section	O
with	O
the	O
header	O
CACHE	B-Protocol
.	O
</s>
<s>
CACHE	B-Protocol
:	O
</s>
<s>
There	O
is	O
a	O
shift	O
to	O
the	O
explicit	O
section	O
by	O
the	O
header	O
CACHE	B-Protocol
:	O
and	O
the	O
resources	O
(	O
the	O
CSS	B-Language
stylesheet	I-Language
,	O
JavaScript	B-Language
and	O
the	O
image	O
file	O
)	O
can	O
be	O
downloaded	O
and	O
used	O
offline	O
.	O
</s>
<s>
The	O
fallback	O
section	O
in	O
a	O
cache	B-Language
manifest	I-Language
file	O
can	O
be	O
used	O
to	O
substitute	O
online	O
resources	O
that	O
cannot	O
be	O
cached	O
or	O
were	O
not	O
cached	O
successfully	O
.	O
</s>
<s>
i.e.	O
,	O
/	O
/offline.html	O
.	O
</s>
<s>
If	O
the	O
browser	O
does	O
not	O
find	O
the	O
page	O
in	O
the	O
appcache	B-Language
,	O
the	O
application	O
will	O
display	O
the	O
page	O
/offline.html	O
.	O
</s>
<s>
Events	O
are	O
under	O
the	O
ApplicationCache	O
JavaScript	B-Language
object	O
.	O
</s>
<s>
Checking	O
Event	O
-	O
occurs	O
when	O
the	O
browser	O
visits	O
a	O
web	O
page	O
and	O
reads	O
the	O
manifest	O
attribute	O
on	O
the	O
<html>	O
element	O
.	O
</s>
<s>
Cached	O
Event	O
-	O
occurs	O
once	O
all	O
the	O
files	O
have	O
been	O
downloaded	O
and	O
the	O
offline	B-Application
web	I-Application
application	I-Application
is	O
equipped	O
to	O
be	O
used	O
offline	O
.	O
</s>
<s>
Noupdate	O
Event	O
-	O
this	O
will	O
take	O
place	O
if	O
the	O
cache	B-Language
manifest	I-Language
has	O
not	O
changed	O
.	O
</s>
<s>
Downloading	O
Event	O
-	O
if	O
the	O
cache	B-Language
manifest	I-Language
has	O
changed	O
the	O
resources	O
the	O
files	O
will	O
be	O
downloaded	O
again	O
.	O
</s>
<s>
Page	B-Protocol
Not	I-Protocol
Found	I-Protocol
(	O
HTTP	B-Protocol
error	I-Protocol
404	I-Protocol
)	O
or	O
Page	O
Permanently	O
Gone	O
(	O
HTTP	O
error	O
410	O
)	O
.	O
</s>
<s>
Failure	O
to	O
download	O
the	O
HTML	B-Language
page	O
that	O
pointed	O
to	O
the	O
manifest	O
.	O
</s>
<s>
The	O
cache	B-Language
manifest	I-Language
changed	O
while	O
the	O
update	O
occurred	O
.	O
</s>
<s>
The	O
cache	B-Language
manifest	I-Language
was	O
changed	O
but	O
the	O
browser	O
did	O
not	O
download	O
a	O
resource	O
in	O
the	O
manifest	O
.	O
</s>
