index.php:
cache.manifest
CACHE MANIFEST
CACHE:
/img.png
FALLBACK:
/ /offlin
I had the same problem.
I used an iframe to load a page called 'go_offline.html' this page has the manifest attribute on the html element and some dummy content.
the iframe is hidden using css
this way only the dummy page is cached and all requests are caught by the fallback page in the .manifest file