kiwix / kiwix-tools

Command line Kiwix tools: kiwix-serve, kiwix-manage, ...
https://download.kiwix.org/release/kiwix-tools/
GNU General Public License v3.0
433 stars 85 forks source link

kiwix-serve complains about service workers when serving custom zim files. #487

Closed ghost closed 2 years ago

ghost commented 2 years ago

I downloaded stallman.org as a zim using the youzim.it website. When i serve it using kiwix-serve and access it using localhost, it works like normal. When accessing it from an ip address, it then complains and says that i need to access the page via https for service workers to work.

Screenshot_2021-10-09_14-37-12

How can i fix this, or maybe this is a bug. I am using the latest version of kiwix-serve (3.1.2-5). I tried it with another website that i also zimmed using youzim.it and the same thing happens.

kelson42 commented 2 years ago

This zim is using service workers, you have to serve via https or via localhost.

ghost commented 2 years ago

Can i disable it somehow?

kelson42 commented 2 years ago

No

ghost commented 2 years ago

Is there a way to create a zim without service workers, like the ones on the kiwix wiki?

dustinormond commented 1 year ago

Did you ever find out how to create zim files without server workers?

kelson42 commented 1 year ago

@dustinormond Almost all zim files don't rely on service wrokers... but so far zimit/warc2zim still rely on serivce workers... still not sure this will change