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

Enable caching on non-https pages #20

Open
klesun opened this issue Sep 9, 2021 · 0 comments
Open

Enable caching on non-https pages #20

klesun opened this issue Sep 9, 2021 · 0 comments

Comments

@klesun
Copy link
Owner

klesun commented Sep 9, 2021

As I found out today, the caching does not work on non-https pages because crypto.subtle is only available in secure contexts, and I use it for sha256 hash of compiled code to detect changes.

Some collision-resistant version of inlined crc function would do, though need some googling. In the worst case I don't find any simple solutions, I have a very stupid idea - to split hashed text into 8 chunks and use crc32 on each of them, then concat digests.

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

1 participant