Professional Documents
Culture Documents
Enable Leverage Browser Caching
Enable Leverage Browser Caching
All I had to do next is adding the following to the virtual host configuration for
Podcastpedia.org, and to .htaccess for Codingpedia.org:
# Feed
ExpiresByType application/atom+xml "access plus 10 hours"
ExpiresByType application/rss+xml "access plus 10 hours"
# Webfonts
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
ExpiresByType application/x-font-ttf "access plus 1 month"
ExpiresByType application/x-font-woff "access plus 1 month"
ExpiresByType font/opentype "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
</IfModule>
<IfModule mod_headers.c>
<FilesMatch "\\.(ico|jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=2678400, public"
</FilesMatch>
<FilesMatch "\\.(css)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
<FilesMatch "\\.(js)$">
Header set Cache-Control "max-age=604800, private"
</FilesMatch>
<FilesMatch "\\.(x?html?|php)$">
Header set Cache-Control "max-age=60, private, must-revalidate"
</FilesMatch>
</IfModule>