Cache help needed

Calling on expert advice if possible…

If we have a HTML site where images and certain assets are updated on a daily basis, for 10 days - what’s the best way to handle caching and prevent daily return traffic not seeing the previous content?

Is there a way to force clear the cache in some way? Would the solution be:

Ideally looking for the most straight forward solution as it’s a super basic site.

Thanks all!

Best way is .htaccess ( considering the server is not Windows )

<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType image/x-icon "access plus 2592000 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 86400 seconds"
ExpiresByType application/x-javascript “access plus 86400 seconds”
</IfModule>

1 Like

Thank you!