0

HTML5 Application Cache isn't supported by IE8 and IE9.

What would happened with website which uses HTML5 Application Cache when opened in IE8 for example? Will it be loaded as usual or throw an error?

Michał Perłakowski
  • 88,409
  • 26
  • 156
  • 177
Alex F
  • 183
  • 2
  • 14

1 Answers1

1

Application Cache works by adding manifest attribute to the <html> element. Browsers simply ignore attributes which they don't understand, so IE 8 or 9 would behave as if this attribute wasn't there.

However, if you try to access Application Cache through JavaScript by using the applicaitonCache property of window, your code may throw an error. For example this code:

window.applicationCache.addEventListener('updateready', onUpdateReady);

would throw error, something like:

TypeError: Cannot read property 'addEventListener' of undefined

Note that Application Cache is now deprecated and you should use Service Workers instead.

Michał Perłakowski
  • 88,409
  • 26
  • 156
  • 177
  • service-worker isn't fully supported by major browsers yet. Anyway, thanks for you comment, it gave me the info I was looking for. – Alex F Jul 15 '16 at 12:42