Can an iframe render offline with a service worker?
问题 I have my domain, abc.com , and an iframe inside my page 123.com . I own the code for each domain. With a service worker I can load abc.com while offline but my iframe for 123.com does not load, even if I add its files to my cache.addAll call. How can I get my iframe to render while offline? Examples welcome. <!DOCTYPE html> <html> <head></head> <body> will render offline <!-- will not render offline --> <iframe src="123.com"></iframe> </body> </html> 回答1: Loading an <iframe> is very similar