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();