chiark / gitweb /
doc: mention server-side compression config for Apache.
authorVladimír Vondruš <mosra@centrum.cz>
Tue, 24 Oct 2017 11:29:24 +0000 (13:29 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Tue, 24 Oct 2017 11:29:24 +0000 (13:29 +0200)
doc/css.rst

index 6f05a105abe84e3d50b33f0afd85c6319d32cd3c..c2ad30e704d5553bdac0f8698cab54ed2e5ae6ab 100644 (file)
@@ -99,6 +99,17 @@ to include a proper :html:`<meta>` tag. The HTML5 DOCTYPE is also required.
     I recommend using the original files for development and switching to the
     compiled versions when publishing the website.
 
+.. block-info:: Tip: server-side compression
+
+    Even though the CSS files are already quite small, enabling server-side
+    compression will make your website load even faster. If you have an Apache
+    server running, enabling the compression is just a matter of adding the
+    following to your ``.htaccess`` file:
+
+    .. code:: apache
+
+        AddOutputFilter DEFLATE html css js
+
 With this, you can start using the framework right away. Click the headings
 below to get to know more.