IfModule mod_expires ExpiresActive on ExpiresByType image jpeg access

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType application/x-font-woff "access plus 1 year"
ExpiresByType application/font-woff "access plus 1 year"
AddType application/font-woff2 .woff2
ExpiresByType application/font-woff2 "access plus 1 year"
</IfModule>