Ein historischer Referenzleitfaden für den HTML5 Application Cache (manifest.appcache).
Veraltet & Hinfällig: Application Cache wurde aus den Webstandards entfernt. Moderne Web-Apps nutzen Service Workers und die Cache API für 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) {
// Cache austauschen und Seite neu laden
appCache.swapCache();
window.location.reload();
}
});
// Update-Prüfung erzwingen
appCache.update();