huxpro.github.io icon indicating copy to clipboard operation
huxpro.github.io copied to clipboard

pwa影响了其他GitHub Pages

Open Beats0 opened this issue 6 years ago • 1 comments

搭建了多个GitHub Pages情况下 访问 userName.github.io 没问题

当访问其他GitHub Pages, 访问 userName.github.io/repositoryName 时,会直接访问失败 访问 userName.github.io/repositoryName/ 时,访问成功

应该是由于pwa的原因,访问 userName.github.io/repositoryName/ 时会执行pwa的相关js

而使用隐身模式时一切正常

Beats0 avatar Jan 19 '20 07:01 Beats0

恩我以前也遇到过这个问题所以我在 sw.js 里有对 userName.github.io/repositoryName 这种情况做 redirect。代码在 https://github.com/Huxpro/huxpro.github.io/blob/master/sw.js#L82 有兴趣帮忙看看具体是为什么仍然会失败吗?

Huxpro avatar Jan 19 '20 08:01 Huxpro