You can make a Manifest
controller with just an index()
method, and make /index.php/manifest
return the CACHE MANIFEST
document (with appropriate headers).
And then include that on the page with
<html manifest="/myapp/index.php/manifest">
Additional notes:
- app cache works with urls, not files — so it has no idea that index.php and index.php/index (etc) are "the same file".
- if a html file includes a manifest, that file is cached automatically, so you don't have to explicitly include that in the CACHE: directive. (You only need to explicitly list additional css/js files, etc)
- in the manifest, don't use the full URL (http://…), just the path itself (/myapp/index…).
- I highly reccomend you go through the Application Cache documentation once again just to make sure you've understood everything correctly. It's a really tricky thing to get working correctly.