dive-into-webpack icon indicating copy to clipboard operation
dive-into-webpack copied to clipboard

3-14构建离线应用那章有错误

Open hellozjf opened this issue 6 years ago • 3 comments

我运行3-14的代码,打开chrome访问https://localhost:8080/index.html,发现报错了

图片

之后验证结果就无法从ServiceWorker那里获取缓存了

我怀疑是证书问题,请问证书问题应该怎么解决呢?

hellozjf avatar Nov 20 '18 00:11 hellozjf

我运行3-14的代码,打开chrome访问https://localhost:8080/index.html,发现报错了

图片

之后验证结果就无法从ServiceWorker那里获取缓存了

我怀疑是证书问题,请问证书问题应该怎么解决呢? 不要访问https://localhost:8080,直接访问http://localhost:8080试试呢

cg24 avatar Dec 11 '18 04:12 cg24

我也遇到同样的问题,sw.js 资源请求failed

killerlei avatar Jan 19 '19 12:01 killerlei

是HTTPS的证书问题导致,可能是最新版的chrome禁止了localhost的证书

gwuhaolin avatar Jan 21 '19 12:01 gwuhaolin