snipt

Ctrl+h for KB shortcuts

Text only

Browser caching in .htaccess

<IfModule mod_expires.c>
   ExpiresActive On
   ExpiresDefault "access plus 1 seconds"
   ExpiresByType text/html "access plus 600 seconds"
   ExpiresByType text/css "access plus 604800 seconds"
   ExpiresByType text/javascript "access plus 216000 seconds"
   ExpiresByType application/xhtml+xml "access plus 600 seconds"
   ExpiresByType image/jpeg "access plus 2592000 seconds"
   ExpiresByType image/png "access plus 2592000 seconds"
   ExpiresByType etc, etc.
</IfModule>
https://snipt.net/embed/6b1de788a69ac48b6038e7db7aa80d4b/
/raw/6b1de788a69ac48b6038e7db7aa80d4b/
6b1de788a69ac48b6038e7db7aa80d4b
text
Text only
11
2019-06-19T22:02:13
True
False
False
Apr 02, 2014 at 05:30 AM
/api/public/snipt/126704/
browser-caching-in-htaccess
<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> <a href="#L-8"> 8</a> <a href="#L-9"> 9</a> <a href="#L-10">10</a> <a href="#L-11">11</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>&lt;IfModule mod_expires.c&gt; </span><span id="L-2"><a name="L-2"></a> ExpiresActive On </span><span id="L-3"><a name="L-3"></a> ExpiresDefault &quot;access plus 1 seconds&quot; </span><span id="L-4"><a name="L-4"></a> ExpiresByType text/html &quot;access plus 600 seconds&quot; </span><span id="L-5"><a name="L-5"></a> ExpiresByType text/css &quot;access plus 604800 seconds&quot; </span><span id="L-6"><a name="L-6"></a> ExpiresByType text/javascript &quot;access plus 216000 seconds&quot; </span><span id="L-7"><a name="L-7"></a> ExpiresByType application/xhtml+xml &quot;access plus 600 seconds&quot; </span><span id="L-8"><a name="L-8"></a> ExpiresByType image/jpeg &quot;access plus 2592000 seconds&quot; </span><span id="L-9"><a name="L-9"></a> ExpiresByType image/png &quot;access plus 2592000 seconds&quot; </span><span id="L-10"><a name="L-10"></a> ExpiresByType etc, etc. </span><span id="L-11"><a name="L-11"></a>&lt;/IfModule&gt; </span></pre></div> </td></tr></table>
cache, htaccess