www.michalscorner.com what I have recently discovered

21Sep/100

apache server-side cache using mod_cache

content from apache.org

<IfModule mod_cache.c>
  #LoadModule disk_cache_module modules/mod_disk_cache.so
   <IfModule mod_disk_cache.c>
   CacheRoot /YOUR/PATH/TO/CACHE/STORE
   CacheSize 256
   CacheEnable disk  /
#number of subdir levels in the cache
   CacheDirLevels 8
#number of characters for each subdirectory name in the cache hierarchy.
   CacheDirLength 5
</IfModule>

23Jul/100

apache cache control .htaccess (mod_expires, mod_deflate)

AllowOverride +Indexes
<IfModule mod_expires.c>
   ExpiresActive On
   ExpiresByType image/gif A2592000
   ExpiresByType image/jpg A2592000
   ExpiresByType image/png A2592000
   ExpiresByType text/css A2592000
   ExpiresByType application/javascript A2592000
   ExpiresByType application/x-javascript A2592000
</IfModule>

zipping content

<IfModule mod_deflate.c>
   AddOutputFilterByType DEFLATE text/html text/plain text/css application/javascript

   <IfModule mod_headers.c>
      #properly handle requests coming from behind proxies
      Header append Vary User-Agent
   </IfModule>
</IfModule>

Or:

ExpiresActive On
ExpiresDefault "access plus 4 hours"
ExpiresByType application/javascript A900
ExpiresByType application/x-javascript A900
ExpiresByType text/javascript A900
ExpiresByType text/html A90
ExpiresByType text/xml A90
ExpiresByType text/css A900
ExpiresByType text/plain A62
ExpiresByType image/gif A14400
ExpiresByType image/jpg A14400
ExpiresByType image/jpeg A14400
ExpiresByType image/png A14400
ExpiresByType image/bmp A14400
ExpiresByType application/x-shockwave-flash A3600