snipt

Ctrl+h for KB shortcuts

ApacheConf

GZIP site

1
2
3
4
5
6
7
# Paste this into your .htaccess file
# If server and browser support GZIP
# BEGIN GZIP
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>
# END GZIP
https://snipt.net/embed/f8d14dd3f2f250f7dcc8384b46c3faf7/
/raw/f8d14dd3f2f250f7dcc8384b46c3faf7/
f8d14dd3f2f250f7dcc8384b46c3faf7
apacheconf
ApacheConf
7
2019-07-13T15:29:16
True
False
False
/api/public/snipt/40749/
gzip-site
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c"># Paste this into your .htaccess file</span> </span><span id="L-2"><a name="L-2"></a><span class="c"># If server and browser support GZIP</span> </span><span id="L-3"><a name="L-3"></a><span class="c"># BEGIN GZIP</span> </span><span id="L-4"><a name="L-4"></a><span class="nt">&lt;ifmodule</span> <span class="s">mod_deflate.c</span><span class="nt">&gt;</span> </span><span id="L-5"><a name="L-5"></a><span class="nb">AddOutputFilterByType</span> DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript </span><span id="L-6"><a name="L-6"></a><span class="nt">&lt;/ifmodule&gt;</span> </span><span id="L-7"><a name="L-7"></a><span class="c"># END GZIP</span> </span></pre></div> </td></tr></table>
browser, gzip, htaccess, server