A
A
Arseniy Sokolovsky2021-10-21 16:46:55
JavaScript
Arseniy Sokolovsky, 2021-10-21 16:46:55

Is it possible to store files for a site in zip'e?

If, for example, I pack files into a zip archive (photos, audio, etc.), is it possible to unpack zip files using js, get files from there and use them on the site? If so, how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2021-10-21
@SokolarGm

It is possible, but it is not clear why.
Servers themselves are able to compress the given files with gzip. You can open the browser console right on this page, and you will see Content-Encoding: gzip. Apache or nginx compressed the content and chrome unpacked it itself.
If you need it with the help of js, then this is also possible .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question