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?

0

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

service-worker isn't fully supported by major browsers yet. Anyway, thanks for you comment, it gave me the info I was looking for.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.