diff --git a/pages/02.linux/26.nginx/default.en.md b/pages/02.linux/26.nginx/default.en.md index 68e9068..7e43f7f 100644 --- a/pages/02.linux/26.nginx/default.en.md +++ b/pages/02.linux/26.nginx/default.en.md @@ -1,8 +1,26 @@ --- title: Nginx +media_order: content-encoding-type.png --- [toc] Interesting options, configurations and information about nginx. ## Compression *NOTE: The most reliable way to check whether content is compressed, is by using the debug tools in the webbrowser. Look for the "content-encoding" header* +![Picture shows parts of the response headers in the network tab of the firefox debug tool](content-encoding-type.png) + +These are the settings used by this website to compress with gzip. +These will suffice for most websites. +``` + # Compression + gzip on; + gzip_vary on; + gzip_proxied any; + gzip_http_version 1.1; + gzip_types text/plain text/html text/css application/json application/javascript application/x-javascript text/javascript text/xml application/xml application/rss+xml application/atom+xml application/rdf+xml; +``` + +> All configuration options can be found in the [official documentation](https://nginx.org/en/docs/http/ngx_http_gzip_module.html) + +## Website Performance +> Google's own [PageSpeed Insights](https://pagespeed.web.dev/) tool can be used to measure website performance. \ No newline at end of file