wpsharks / comet-cache

An advanced WordPress® caching plugin inspired by simplicity.
https://cometcache.com
GNU General Public License v3.0
77 stars 18 forks source link

Recommended static assets cache expiration #932

Open cristi-contiu opened 5 years ago

cristi-contiu commented 5 years ago

Hello!

In the "Apache Optimizations" > "Leverage Browser Caching?" section there is the following statement: "Google recommends 1 week" and that is the ExpiresDefault setting used in .htaccess.

However, when I run a Google PageSpeed Insights test on a CometCachePro powered website, I get the following message in the Diagnostics section: image

Following the Learn more link, I see that the recommendation is for "a year or longer". By testing empirically, I found out that the warning disappears when using an expiration of more than 100 days.

Do you think we should also increase the ExpiresDefault from 1 week to 100 days?