ocrdu/arduino-webinterface-websocket-ap

Gzip and base64

zygisjas opened this issue · 2 comments

It's not an issue more like a question. There is no mention of the tool you used to compress the webpage?

Could you please provide information regarding that?

ocrdu commented

You can use anything that creates a compressed file the browser understands, as long as you send the right Content-Encoding header, see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding .

You can use anything that creates a compressed file the browser understands, as long as you send the right Content-Encoding header, see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding .

I've used this command in my Linux machine:

cat page.html | gzip | base64 -w0