<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
</IfModule>la directiva expiresbytype (mod_expires) define el tiempo adicional de las cabeceras expires y cache-control (directiva max-age) de los archivos del tipo mime indicado: «access plus 2592000 seconds» (por ejemplo). la directiva max-age de cache-control
Specifies the maximum amount of time a resource will be considered fresh.
«Cache-Control» de MDN web docs.
el tiempo adicional se debe expresar en segundos. estas cabeceras también se pueden definir mediante las directivas de mod_headers:
<IfModule mod_headers.c>
<FilesMatch "(.html|.php)$">
Header set Cache-Control "private, max-age=1"
</FilesMatch>
<FilesMatch "^(?!(.*.html|.*.php)$).*$">
Header set Cache-Control "public, max-age=604800"
</FilesMatch>
</IfModule>en este caso, la directiva header se aplica a los archivos según su extensión: en primer lugar, se aplica «private, max-age=1» a aquellos archivos cuya extensión sea html o php; en segundo lugar, sucede al contrario (negative lookahead), esto es, se aplica «max-age=604800» a todos aquellos archivos cuya extensión no sea html o php:
Specifies a group that can not match after the main expression (if it matches, the result is discarded).
«negative lookahead» de RegExr.
en cuanto a las directivas public y private de http,
The "public" response directive indicates that any cache MAY store the response, even if the response would normally be non-cacheable or cacheable only within a private cache.
«public» de RFC 7234.
The "private" response directive indicates that the response message is intended for a single user and MUST NOT be stored by a shared cache.
«private» de RFC 7234.
es posible, además, deshabilitar la caché a discreción:
<FilesMatch ".(pl|php|cgi|spl|scgi|fcgi)$">
Header unset Cache-Control
</FilesMatch>o destotro modo,
<FilesMatch ".(pl|php|cgi|spl|scgi|fcgi)$"> ExpiresActive Off </FilesMatch>
fuente: dreamhost.com.

