my manifest looks like this :
<?php
header("Cache-Control: no-cache, private");
header("Content-Type: text/cache-manifest");
?>
CACHE MANIFEST
# v32
/wp-content/plugins/sitepress-multilingual-cms/res/css/language-selector.css?v=3.1.9.3
/wp-content/themes/mytheme/css/reset.css
/wp-content/themes/mytheme/js/jquery-2.1.3.min.js
/wp-content/themes/mytheme/img/reset.png
/wp-content/themes/mytheme/img/tablette_petit.png
/wp-content/themes/mytheme/img/ordi_petit.png
/wp-content/themes/mytheme/img/home.png
/wp-content/themes/mytheme/img/update.png
/wp-content/themes/mytheme/font/tahoma2.ttf
FALLBACK:
/ /offline/
the goal is to display the offline page when offine for any page.
This manifest is set when accessing the page :
<!doctype html>
<?php
$manifest="";
if($pagename == "mypage"){
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome') !== false){
$manifest="manifest=\"/cachemanifest/\"";
}else{
$manifest="manifest=\"/cachemanifestothers/\"";
}
}
//$manifest="";
?>
<html class="mainsite" <?php echo $manifest; ?>>
(chrome has a special manifest because cache is working well)
The problem is that firefox is caching mypage : When I modify it, F5 does nothing until I update the manifest. In about:cache I see every file listed + /mypage. But this page is NOT listed in the CACHE: section.
It is very boring to update the manifest each time I modify this page... And later when I go offline and access /mypage I don't fall back to the /offline page but see /mypage because it is cached and the page is broken because it misses lot of js / css .
Thanks for help