snipt

Ctrl+h for KB shortcuts
Notice: Snipt is moving away from free accounts on May 1st, 2014. Read more about the transition here.
#106445

Bash

test mod_gzip and mod_deflate

curl http://example.com -H "Accept-Encoding: gzip,deflate"
https://snipt.net/embed/cd30f40276a632b9daa4c2a5e20db3ef/
https://snipt.net/raw/cd30f40276a632b9daa4c2a5e20db3ef/
cd30f40276a632b9daa4c2a5e20db3ef
bash
Bash
1
2014-04-13T02:50:20
True
False
Jan 16, 2014 at 08:41 PM
/api/public/snipt/106445/
test-mod_gzip-and-mod_deflate
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>curl http://example.com -H <span class="s2">&quot;Accept-Encoding: gzip,deflate&quot;</span> </span></pre></div> </td></tr></table>
mod-gzip, mod_deflate
#14175

Text only

code added to .htaccess to enable compression of certain served content using Apache mod_deflate

# compress all text & html
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/x-js text/css application/x-javascript application/javascript
https://snipt.net/embed/00eeb47352ae3f9782f4de7d88b1406c/
https://snipt.net/raw/00eeb47352ae3f9782f4de7d88b1406c/
00eeb47352ae3f9782f4de7d88b1406c
text
Text only
2
2014-04-14T22:43:41
True
False
/api/public/snipt/14175/
code-added-to-htaccess-to-enable-compression-of-certain-served-content-using-apache-mod_deflate
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a># compress all text &amp; html </span><span id="L-2"><a name="L-2"></a>AddOutputFilterByType DEFLATE text/html text/plain text/xml text/x-js text/css application/x-javascript application/javascript </span></pre></div> </td></tr></table>
apache, compress, compression, htaccess, mod_deflate