Die folgende Kombination funktioniert gut für IE, Chrome und Opera, schlägt aber bei Firefox fehl. Firfox ignoriert nur die Manifestdatei.HTML5 Anwendungscache funktioniert nicht mit Firefox
entry.html
<html manifest="manifest.php">
<h1>Application Cache Example</h1>
<script>
function onUpdateReady() {
console.log('found new version!');
}
window.applicationCache.addEventListener('updateready', onUpdateReady);
if(window.applicationCache.status === window.applicationCache.UPDATEREADY) {
onUpdateReady();
}
function update_picture() {
document.getElementById('picture').src='messenger.png '
}
</script>
</html>
Manifest.php
header('Content-Type: text/cache-manifest');
$lines = array();
$lines[] = 'CACHE MANIFEST';
$lines[] = '/picture1.gif';
$lines[] = '/picture2.gif';
$lines[] = '/picture3.gif';
$lines[] = '/picture4.gif';
$lines[] = '/picture5.gif';
$lines[] = '/picture6.gif';
$lines[] = '/picture7.gif';
$lines[] = '/picture8.gif';
$lines[] = '/picture9.gif';
$lines[] = '/picture10.gif';
echo implode("\r\n",$lines);
Ich versuche, das Problem bereits für die letzten 4 Tage, um herauszufinden. Ich kann mir einfach nicht vorstellen, warum Firefox keine Bilder zwischenspeichern möchte.
Alle Ideen, Kommentare oder Lösungen sind willkommen. Vielen Dank im Voraus.