[!WARNING] HTML5 Application Cache (AppCache) este invechit si a fost eliminat din standardele web moderne. Aplicatiile web progresive moderne folosesc in schimb Service Worker API si Cache API.
Formatul manifestului (Manifest Format)
CACHE MANIFEST
# version 1.0.0
CACHE:
/assets/app.js
/assets/styles.css
/assets/logo.png
NETWORK:
*
FALLBACK:
/ /offline.html
Sectiunile manifestului (Manifest Sections)
CACHE:Lista de URI-uri care trebuie descarcate si stocate in cache pentru utilizare offline.NETWORK:Lista alba a resurselor care necesita conexiune activa la retea (* pentru toate celelalte).FALLBACK:Perechi de rezerva [cale_online] [cale_fallback] afisate cand resursele nu sunt accesibile.
Integrare HTML (HTML Integration)
<!DOCTYPE html>
<html manifest="example.appcache">
<head>
<title>Offline App</title>
</head>
<body>
...
</body>
</html>