mirror of
				https://github.com/privacyguides/privacyguides.org.git
				synced 2025-11-04 05:17:57 +00:00 
			
		
		
		
	Enable Brotli compression
- Compress file AOD. - Let the server only use static files. - Don't add github-pages to jekyll-plugins group, due to the fact github-pages will behave differently when enabling production ENV. - Adds an extra 10s for the `host` to use `./buid.sh` due to compressing all files. - Resolves #2186
This commit is contained in:
		
							
								
								
									
										8
									
								
								Gemfile
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								Gemfile
									
									
									
									
									
								
							@@ -1,12 +1,10 @@
 | 
				
			|||||||
source "https://rubygems.org"
 | 
					source "https://rubygems.org"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Install github-pages gem (https://jekyllrb.com/docs/github-pages/)
 | 
					# Install github-pages gem (https://jekyllrb.com/docs/github-pages/)
 | 
				
			||||||
gem "github-pages", group: :jekyll_plugins
 | 
					gem "github-pages"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Plugins
 | 
					# Install jekyll-brotli gem (https://github.com/philnash/jekyll-brotli/)
 | 
				
			||||||
group :jekyll_plugins do
 | 
					gem 'jekyll-brotli'
 | 
				
			||||||
  # example: gem "jekyll-feed", "~> 0.6"
 | 
					 | 
				
			||||||
end
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
 | 
					# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
 | 
				
			||||||
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
 | 
					gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										21
									
								
								Gemfile.lock
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								Gemfile.lock
									
									
									
									
									
								
							@@ -9,6 +9,7 @@ GEM
 | 
				
			|||||||
      zeitwerk (~> 2.2, >= 2.2.2)
 | 
					      zeitwerk (~> 2.2, >= 2.2.2)
 | 
				
			||||||
    addressable (2.7.0)
 | 
					    addressable (2.7.0)
 | 
				
			||||||
      public_suffix (>= 2.0.2, < 5.0)
 | 
					      public_suffix (>= 2.0.2, < 5.0)
 | 
				
			||||||
 | 
					    brotli (0.2.3)
 | 
				
			||||||
    coffee-script (2.4.1)
 | 
					    coffee-script (2.4.1)
 | 
				
			||||||
      coffee-script-source
 | 
					      coffee-script-source
 | 
				
			||||||
      execjs
 | 
					      execjs
 | 
				
			||||||
@@ -26,9 +27,11 @@ GEM
 | 
				
			|||||||
      ffi (>= 1.3.0)
 | 
					      ffi (>= 1.3.0)
 | 
				
			||||||
    eventmachine (1.2.7)
 | 
					    eventmachine (1.2.7)
 | 
				
			||||||
    execjs (2.7.0)
 | 
					    execjs (2.7.0)
 | 
				
			||||||
    faraday (1.2.0)
 | 
					    faraday (1.3.0)
 | 
				
			||||||
 | 
					      faraday-net_http (~> 1.0)
 | 
				
			||||||
      multipart-post (>= 1.2, < 3)
 | 
					      multipart-post (>= 1.2, < 3)
 | 
				
			||||||
      ruby2_keywords
 | 
					      ruby2_keywords
 | 
				
			||||||
 | 
					    faraday-net_http (1.0.1)
 | 
				
			||||||
    ffi (1.14.2)
 | 
					    ffi (1.14.2)
 | 
				
			||||||
    forwardable-extended (2.6.0)
 | 
					    forwardable-extended (2.6.0)
 | 
				
			||||||
    gemoji (3.0.1)
 | 
					    gemoji (3.0.1)
 | 
				
			||||||
@@ -103,6 +106,9 @@ GEM
 | 
				
			|||||||
      safe_yaml (~> 1.0)
 | 
					      safe_yaml (~> 1.0)
 | 
				
			||||||
    jekyll-avatar (0.7.0)
 | 
					    jekyll-avatar (0.7.0)
 | 
				
			||||||
      jekyll (>= 3.0, < 5.0)
 | 
					      jekyll (>= 3.0, < 5.0)
 | 
				
			||||||
 | 
					    jekyll-brotli (2.2.1)
 | 
				
			||||||
 | 
					      brotli (~> 0.2.0)
 | 
				
			||||||
 | 
					      jekyll (>= 3.0, < 5.0)
 | 
				
			||||||
    jekyll-coffeescript (1.1.1)
 | 
					    jekyll-coffeescript (1.1.1)
 | 
				
			||||||
      coffee-script (~> 2.2)
 | 
					      coffee-script (~> 2.2)
 | 
				
			||||||
      coffee-script-source (~> 1.11.1)
 | 
					      coffee-script-source (~> 1.11.1)
 | 
				
			||||||
@@ -203,21 +209,23 @@ GEM
 | 
				
			|||||||
      rb-fsevent (~> 0.10, >= 0.10.3)
 | 
					      rb-fsevent (~> 0.10, >= 0.10.3)
 | 
				
			||||||
      rb-inotify (~> 0.9, >= 0.9.10)
 | 
					      rb-inotify (~> 0.9, >= 0.9.10)
 | 
				
			||||||
    mercenary (0.3.6)
 | 
					    mercenary (0.3.6)
 | 
				
			||||||
    mini_portile2 (2.4.0)
 | 
					    mini_portile2 (2.5.0)
 | 
				
			||||||
    minima (2.5.1)
 | 
					    minima (2.5.1)
 | 
				
			||||||
      jekyll (>= 3.5, < 5.0)
 | 
					      jekyll (>= 3.5, < 5.0)
 | 
				
			||||||
      jekyll-feed (~> 0.9)
 | 
					      jekyll-feed (~> 0.9)
 | 
				
			||||||
      jekyll-seo-tag (~> 2.1)
 | 
					      jekyll-seo-tag (~> 2.1)
 | 
				
			||||||
    minitest (5.14.2)
 | 
					    minitest (5.14.3)
 | 
				
			||||||
    multipart-post (2.1.1)
 | 
					    multipart-post (2.1.1)
 | 
				
			||||||
    nokogiri (1.10.10)
 | 
					    nokogiri (1.11.1)
 | 
				
			||||||
      mini_portile2 (~> 2.4.0)
 | 
					      mini_portile2 (~> 2.5.0)
 | 
				
			||||||
    octokit (4.19.0)
 | 
					      racc (~> 1.4)
 | 
				
			||||||
 | 
					    octokit (4.20.0)
 | 
				
			||||||
      faraday (>= 0.9)
 | 
					      faraday (>= 0.9)
 | 
				
			||||||
      sawyer (~> 0.8.0, >= 0.5.3)
 | 
					      sawyer (~> 0.8.0, >= 0.5.3)
 | 
				
			||||||
    pathutil (0.16.2)
 | 
					    pathutil (0.16.2)
 | 
				
			||||||
      forwardable-extended (~> 2.6)
 | 
					      forwardable-extended (~> 2.6)
 | 
				
			||||||
    public_suffix (3.1.1)
 | 
					    public_suffix (3.1.1)
 | 
				
			||||||
 | 
					    racc (1.5.2)
 | 
				
			||||||
    rb-fsevent (0.10.4)
 | 
					    rb-fsevent (0.10.4)
 | 
				
			||||||
    rb-inotify (0.10.1)
 | 
					    rb-inotify (0.10.1)
 | 
				
			||||||
      ffi (~> 1.0)
 | 
					      ffi (~> 1.0)
 | 
				
			||||||
@@ -256,6 +264,7 @@ PLATFORMS
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
DEPENDENCIES
 | 
					DEPENDENCIES
 | 
				
			||||||
  github-pages
 | 
					  github-pages
 | 
				
			||||||
 | 
					  jekyll-brotli
 | 
				
			||||||
  tzinfo-data
 | 
					  tzinfo-data
 | 
				
			||||||
 | 
					
 | 
				
			||||||
BUNDLED WITH
 | 
					BUNDLED WITH
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,9 @@ production_url: "https://www.privacytools.io"
 | 
				
			|||||||
sass:
 | 
					sass:
 | 
				
			||||||
  style: compressed
 | 
					  style: compressed
 | 
				
			||||||
plugins:
 | 
					plugins:
 | 
				
			||||||
 | 
					  - github-pages
 | 
				
			||||||
  - jekyll-sitemap
 | 
					  - jekyll-sitemap
 | 
				
			||||||
 | 
					  - jekyll-brotli
 | 
				
			||||||
sitemap:
 | 
					sitemap:
 | 
				
			||||||
file: "/sitemap.xml"
 | 
					file: "/sitemap.xml"
 | 
				
			||||||
include: [".well-known"]
 | 
					include: [".well-known"]
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user