I have a problem with the cache.manifest file being cached itself. The value of each change in the file is not displayed on (Mobile) Safari, so it will never be updated and display the latest cached files.
I tried to avoid this by using a file .htaccessin the same directory as the file cache.manifest:
ExpiresActive On
ExpiresDefault "access"
This did not help, so I changed cache.manifest in the php file that contains the following headers:
header("Expires: Mon, 26 Jul 1990 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header('Content-Type: text/cache-manifest');
Does anyone have any other ideas on how I can make sure the cache file itself will be extracted if possible?
Works on: Safari (desktop), Chrome (Samsung Galaxy Tab v10.1), Firefox
Failed: Chrome, Safari (iOS)
Renamed cache.manifest.php back to cache.manifest and added the following lines to .htaccess
<IfModule mod_expires.c>
Header set Cache-Control "public"
ExpiresActive on
ExpiresByType text/cache-manifest "access plus 0 seconds"
</IfModule>
cache.manifest Safari (iOS), . .