1

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.

Adrian Florescu
  • 4,454
  • 8
  • 50
  • 74

1 Answers1

1

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.

Community
  • 1
  • 1
robertc
  • 74,533
  • 18
  • 193
  • 177