Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service workers not supported #145

Closed
perqa opened this issue Jul 17, 2022 · 8 comments
Closed

Service workers not supported #145

perqa opened this issue Jul 17, 2022 · 8 comments
Assignees

Comments

@perqa
Copy link

perqa commented Jul 17, 2022

I made a zim file of https://ohwhataknight.co.uk/travel-guide-to-pembrokeshire, using https://youzim.it/ on my iPhone.

Trying to open the zim file in Kiwix on iPhone, I get this:

Error
The requested URL can not be loaded because service workers are not supported here.
If you use Firefox in Private Mode, try regular mode instead.
If you use Kiwix-Serve locally, replace the IP in your browser address bar with localhost.

@rgaudin
Copy link
Member

rgaudin commented Jul 18, 2022

@perqa thank you for your report. As mentioned on the youzim.it homepage, not all kiwix readers support zimit-made ZIM files. See kiwix/kiwix-apple#341 and kiwix/kiwix-apple#435

Screen Shot 2022-07-18 at 09 01 36

I guess we should change that last sentence.

@rgaudin rgaudin closed this as completed Jul 18, 2022
@rgaudin rgaudin self-assigned this Jul 18, 2022
@JensKorte
Copy link
Contributor

If this another topic, please split it.

I receive

This page must be loaded via an HTTPS URL to support service workers.
Try Loading HTTPS URL?

Downloadlink: wiki.openzim.org_4f32d012.zim (664.85 MiB)

using kiwix-serve from kiwix-tools_linux-armhf-3.4.0 on a Pi400 on RaspberryPi OS, aarch64

@rgaudin
Copy link
Member

rgaudin commented Jan 25, 2023

You must serve over https using a reverse proxy or access it via localhost if from the Pi itself

@JensKorte
Copy link
Contributor

You must serve over https using a reverse proxy or access it via localhost if from the Pi itself

Thanks, it works. Could the message above be extended, please?
e.g.:

Currently only kiwix-serve (via https:// using a reverse proxy or via http://localhost) and kiwix-android ...

@rgaudin
Copy link
Member

rgaudin commented Jan 26, 2023

You understand this message is baked into the ZIM and that the ZIM can be used in a multitude of ways depending on the reader and configurations.

That said we have tickets to:

  • add https support to kiwix-serve
  • improve this message. One thing we'd want is to test whether the same content is already being served via HTTPS and simply redirect in that case.

@JensKorte
Copy link
Contributor

You understand this message is baked into the ZIM and that the ZIM can be used in a multitude of ways depending on the reader and configurations.

As you explain it.

That said we have tickets to:
* improve this message. One thing we'd want is to test whether the same content is already being served via HTTPS and simply redirect in that case.

Why hasn't it happened yet, too few develpers or technical problems?

Without knowing JavaScript in browsers I would have tought it should be possible with modern browser to fetch the content of URLs and compare them or at least the length of data.

@rgaudin
Copy link
Member

rgaudin commented Jan 26, 2023

It's a matter of priorities. If you know someone capable and interested in contributing, that'd be appreciated. This part of code is on https://github.com/openzim/warc2zim repository though.

@JensKorte
Copy link
Contributor

If you know someone capable and interested in contributing, that'd be appreciated.

I'm afraid not!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants