🌐 Website Issue | Enable compression on text #2186
Labels
No Label
🔍🤖 Search Engines
approved
dependencies
duplicate
feedback wanted
high priority
I2P
iOS
low priority
OS
Self-contained networks
Social media
stale
streaming
todo
Tor
WIP
wontfix
XMPP
[m]
₿ cryptocurrency
ℹ️ help wanted
↔️ file sharing
⚙️ web extensions
✨ enhancement
❌ software removal
💬 discussion
🤖 Android
🐛 bug
💢 conflicting
📝 correction
🆘 critical
📧 email
🔒 file encryption
📁 file storage
🦊 Firefox
💻 hardware
🌐 hosting
🏠 housekeeping
🔐 password managers
🧰 productivity tools
🔎 research required
🌐 Social News Aggregators
🆕 software suggestion
👥 team chat
🔒 VPN
🌐 website issue
🚫 Windows
👁️ browsers
🖊️ digital notebooks
🗄️ DNS
🗨️ instant messaging (im)
🇦🇶 translations
No Milestone
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: privacyguides/privacytools.io#2186
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Currently,
privacytools.io
only compress the html pages with gzip, you can confirm this by executingcurl -IL https://privacytools.io -H "Accept-Encoding: gzip, deflate, br" | grep "content-encoding"
whic will returngzip
. If you look further and request an .css or .js you will see no compression is being applied. Compressing files has great benefits, lower latency(time to load the page) and lower network transfers(amount of data). I got confirmation over the development matrix that currently 'NGINX' is the server which has good support for compression along-side the new brotli(br) compression. However it seems like the configuration for compression is the default one which doesn't include css(text/css)/javascript(application/javascript). This should be simple to add to the configuration to have compression on those files as well, which can be quite resourceful. In addition support for the brotli compression the brotli module can be added.As a side-note make sure the assets are enabled trough the static module of gzip/brotli, because it's not dynamic content. So they wouldn't be compressed on every request.
I've saw that @blacklight447-ptio is the current sysadmin so mentioning him.
Regards,
Gusted
That would require
.br
files for every assets in this repo though, which aren't currently being generated. I suppose that could be done as well however, with https://github.com/philnash/jekyll-brotli @dngrayHaving this the static enabled for most files that are text-based will be great for CPU Usage as it doesn't have to compress it every time when the server needs to serve it, as I remembered their are no dynamic pages in
privacytools.io
, it can be enabled for the HTML pages as well.I'm not sure what happened last night, but I guess that
brotli
is now enabled? It will return on the assets abr
content-encoding when possible.Hey @jonaharagon
Do you have any information what happened and how it's now enabled?
Regards,
Gusted
Yes, someone enabled it and did not close this issue :)
I also don't have any powers to do things on github (or anywhere of course), but I'll ask someone else to close it, or you can. Although, I do know static files are not implemented yet like you mentioned (and I pinged @dngray about), so maybe we leave this open until he or another website editor like @freddy-m replies and/or adds that code as well. Since it is probably a good idea.
Or, you could submit a PR for that change if you want, with that plugin I linked :) Static files should be supported on the server side from what I know, it just needs to be enabled here in Jekyll.
Will do.
And thanks to the person that enabled the compression on the other assets as well.