I am working on an ASP.NET MVC webpage that I would like to have offline. I created a cache manifest file and included it as follows:
<html lang="en" manifest="/cache.manifest" type="text/cache-manifest">
(I included the "type" attribute due to Paul Styles answer here .)
The page I'm trying to cache is controlled by the OfflineController.cs controller. The cache.manifest file itself reads as:
CACHE MANIFEST
(I used this syntax for paths due to ZippyV's answer here .)
When I change the version number and reload the page, the console displays:
Document was loaded from Application Cache with manifest https://[...] Application Cache Checking event Application Cache Downloading event Application Cache Progress event (0 of 8) [...] [...] Application Cache UpdateReady event
This means that the manifest file is loaded correctly. In addition, when I browse the page and browse resources> application cache> cache.manifest, all 8 files as shown were uploaded.
However, when I disconnect the Ethernet cable and go to ~ / offline, the site does not load. Any ideas why? Thanks!
source share