When I make changes to style.css I know that I can clear my cache and see the changes, however I can’t control my users getting the new file. Is there a way to control the version the file gets so that the users get the updated file and not their cached version?
<link rel=’stylesheet’ id=’avia-style-css’ href='[my site]/wp-content/themes/enfold-child/style.css?ver=4.1‘ type=’text/css’ media=’all’ />
One option would be to follow this post: https://kriesi.at/support/topic/style-css-with-version-number/
Or you could add this to your .htaccess to expire css after a set time.
ExpiresActive on ExpiresDefault “access plus 8 hours” ExpiresByType text/css “access plus 3 hours”
You must be logged in to reply to this topic.