Reputation: 4492
I want to cache only a few files like JavaScript and CSS, font files and image sprites.
Is it better to add a manifest file for the files or should I let the browser do the cache?
If it's better with manifest, can I still leave the pages inaccessible if a user has no network connection? How?
I don't want this website to work offline, I just want a faster page load on secondary pages.
Upvotes: 1
Views: 100
Reputation: 75707
No, the page you use to reference the manifest file will itself always be cached. See:
So you will always have at least one page which is available offline. However this can be a page which is otherwise not normally accessed, and you can reference it in an iframe
from your online pages.
Upvotes: 1