Archived
🌐 Website Issue | Enable compression on text #2186
Closed
opened 2021-01-10 20:20:53 +00:00 by Gusted
·
7 comments
No Branch/Tag Specified
master
dependabot/bundler/nokogiri-1.13.6
dependabot/bundler/addressable-2.8.0
freddy-m-patch-3
pr-add_RemoveMyPhone_sponsor
pr-browser_cleanup_1257_1328_1430
freddy-m-patch-2
freddy-m-patch-1
pr-vpn_hated_one_video
cdn
update-nitrohorse-image
promote-metager-to-card
hardware
pr-add_azirevpn
pr-add_mailfence
shop
1673
pr/1658
i18n-simple
sponsorship-edits-nov2019
i18n
ipfs
blacklight447-ptio-patch-3
blog
remove-windows-icons
pr/1147
i18n-testing
add-beautify
No results found.
Labels
Clear labels
:mag:🤖 Search Engines
I2P
OS
Self-contained networks
Social media
Tor
WIP
XMPP
[m]
approved
dependencies
duplicate
feedback wanted
high priority
iOS
low priority
stale
streaming
todo
wontfix
₿ cryptocurrency
ℹ️ help wanted
↔️ file sharing
⚙️ web extensions
✨ enhancement
❌ software removal
🆕 software suggestion
🆘 critical
🇦🇶 translations
🌐 Social News Aggregators
🌐 hosting
🌐 website issue
🏠 housekeeping
🐛 bug
👁️ browsers
👥 team chat
💢 conflicting
💬 discussion
💻 hardware
📁 file storage
📝 correction
📧 email
🔎 research required
🔐 password managers
🔒 VPN
🔒 file encryption
🖊️ digital notebooks
🗄️ DNS
🗨️ instant messaging (im)
🚫 Windows
🤖 Android
🦊 Firefox
🧰 productivity tools
The Invisible Internet Project (I2P)
Operating Systems
Anything covering the Tor network
active work in progress, do not merge or PR (yet)!
Extensible Messaging and Presence Protocol
Matrix protocol
approved, waiting for a PR
Pull requests that update a dependency file
A label for stalebot if it gets added
Anything related to media streaming.
Issues or bugs that will not be fixed and/or do not have significant impact on the project.
Browser Extension related issues
Anything covering a translated version of the site
*Technical* issues with the website.
Anything primarily related to site cleanup.
Correction of content on the website
Virtual Private Network
Domain Name System
Firefox & forks, about:config etc.
No labels
🌐 website issue
Milestone
No items
No Milestone
No due date set.
Dependencies
No dependencies set.
Reference: privacyguides/privacytools.io#2186
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Description
Currently,
privacytools.ioonly 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
.brfiles 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

brotliis now enabled? It will return on the assets abrcontent-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.