This page is not available in every language. Missing translations are disabled in the language selector.

Quick reference

HTML5 Application Cache Cheatsheet (Archive)

A historical reference guide for HTML5 AppCache (applicationCache): manifest syntax, cache events, update checking, and Service Worker migration.

· Published

A historical reference guide for HTML5 Application Cache (manifest.appcache).

Deprecated & Obsolete: Application Cache is removed from the web platform specifications. Modern web apps use Service Workers and the Cache API for offline caching.

AppCache Manifest Syntax

CACHE MANIFEST
# Version 2026-11-08

CACHE:
/index.html
/styles/main.css
/scripts/app.js

NETWORK:
/api/
*

FALLBACK:
/offline.html

JavaScript API (window.applicationCache)

const appCache = window.applicationCache;

appCache.addEventListener('updateready', () => {
  if (appCache.status === appCache.UPDATEREADY) {
    // Swap cache and reload page
    appCache.swapCache();
    window.location.reload();
  }
});

// Force update check
appCache.update();

References

Related topics