About this project
ManifestBuilder is a Open Source tool to create a manifest file that contains a list of the resources for the browser’s Application Cache dynamically.
Version 0.2.13
Features:
Usage:
If you are using your .htaccess to add text/cache-manifest type you can use "cache.manifest" as filename. Otherwise you need to use .php extension for your manifest file
Content of the .htaccess file:
AddType text/cache-manifest .manifest
<FilesMatch "\.(manifest)$">
SetHandler application/x-httpd-php
</FilesMatch>
Create manifest.php or cache.manifest File (dependent on your .htaccess settings).
Integration of Manifist builders in your manifest-file:
require(realpath('path/to/ManifestBuilder'));
$mb = new ManifestBuilder();
$mb->addResources(array('resource1', 'resource2'), ManifestBuilder::SECTION_CACHE);
$mb->addResourcesFromDirectory('./img', ManifestBuilder::SECTION_CACHE);
$mb->flush();
Add manifest-file to <html> tag.
<html> tag:
<html manifest="manifest.php">
Imprint
Disclaimer:
Despite carefull control of the content I assume no liability for the contents of external links.