×
Login Register an account
Top Submissions Explore Upgoat Search Random Subverse Random Post Colorize! Site Rules Donate
4

I just found out about the existence of the htmlgz. Interesting

submitted by CoronaHoax to technology 11 monthsMay 15, 2024 22:35:09 ago (+4/-0)     (technology)

I guess all modern browsers automatically support htmlgz files etc. Basically just the html file gzipped, and that's it. Can be used as a direct replacement for html files.


5 comments block


[ - ] MasklessTheGreat 3 points 11 monthsMay 15, 2024 22:56:37 ago (+3/-0)

Is that cool or a good thing? I have no idea what the fuck all that shit means.

[ - ] drstrangergov 3 points 11 monthsMay 15, 2024 23:12:14 ago (+3/-0)

shhhhh. he's nerding in his natural habitat. crikey, she's a beauty.

[ - ] SithEmpire 0 points 11 monthsMay 16, 2024 02:48:55 ago (+0/-0)

Hopefully web services have proper integration for that, because HTTP already has gzip transfer (see Transfer-Encoding).

Ideally the server keeps the page as something like index.html.gz to reduce storage load, but the actual URL still just ends with index.html. Decompress to memory/cache to serve it plain, or serve it verbatim if HTTP gzip transfer actually is used.

Without that integration it is gay because it would affect URLs, and also probably double compress it if gzip transfer is used on top of the file already being gzip.

[ - ] CoronaHoax [op] 0 points 11 monthsMay 16, 2024 06:37:18 ago (+0/-0)

I think it’s just for if you’ve got some hd space limitations on the server. I believe if you have the server do the compression on the fly often the time to compress it is more than the time it’d take to just send raw. Depends.

It’s possible to create htaccess files that’ll auto swap calls for html files for htmlgz ones instead.

[ - ] ProudRebel 0 points 11 monthsMay 16, 2024 05:29:55 ago (+0/-0)

Little or no benefit zipping a html file.