Hetzner - DokuWiki

KonsoleH:Komprimierung aktivieren/en
(Auto-update from VCS)
 
(Auto-update from VCS)
 
Zeile 1: Zeile 1:
 
{{Languages|KonsoleH:Komprimierung aktivieren}}
 
{{Languages|KonsoleH:Komprimierung aktivieren}}
  
<h1>Activation of Gzip-Compression</h1>
+
<h1>Content Compression</h1>
  
<p>mod_deflate is installed on our servers. You can use the following lines in a .htaccess file to activate the compression:</p>
+
<h2>Activation of Compression</h2>
 +
 
 +
<p>mod_deflate (for Gzip) is installed on our servers. You can activate it under "Services" -> "Webserver Extensions".</p>
 +
 
 +
<h2>Individual rules for compression</h2>
 +
 
 +
<p>You can use the following lines in a .htaccess file to customize the compression, for example by Content-Type:</p>
  
 
<pre>FilterDeclare COMPRESS
 
<pre>FilterDeclare COMPRESS

Aktuelle Version vom 10. Januar 2020, 13:47 Uhr

Content Compression

Activation of Compression

mod_deflate (for Gzip) is installed on our servers. You can activate it under "Services" -> "Webserver Extensions".

Individual rules for compression

You can use the following lines in a .htaccess file to customize the compression, for example by Content-Type:

FilterDeclare COMPRESS
FilterProvider COMPRESS DEFLATE "%{Content_Type} -strmatch 'text/html*'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} -strmatch 'text/plain*'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} -strmatch 'text/xml*'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} -strmatch 'text/css*'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} -strmatch 'application/x-javascript*'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} -strmatch 'application/javascript*'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} -strmatch 'application/ecmascript*'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} -strmatch 'text/javascript*'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} -strmatch 'application/rss+xml*'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} -strmatch 'application/json*'"
FilterChain COMPRESS
FilterProtocol COMPRESS DEFLATE change=yes;byteranges=no

This will compress the most common content types. You may add your own content types if you need.



© 2020. Hetzner Online GmbH. Alle Rechte vorbehalten.